diff options
author | Dodji Seketeli <dodji@redhat.com> | 2012-08-06 16:19:09 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@gcc.gnu.org> | 2012-08-06 18:19:09 +0200 |
commit | 61b6d4cdee65148788a7638495ae61f8f2c93272 (patch) | |
tree | 7715884997385ba1fb75caae6a47b4cf5b6ec6ad /gcc/cp/ChangeLog | |
parent | a4a837968d01562e9caf7930670e236ae0fbf6a9 (diff) | |
download | gcc-61b6d4cdee65148788a7638495ae61f8f2c93272.zip gcc-61b6d4cdee65148788a7638495ae61f8f2c93272.tar.gz gcc-61b6d4cdee65148788a7638495ae61f8f2c93272.tar.bz2 |
Avoid crashing on erroneous static_assert usage
When working on something else, I noticed that failing to provide the
second argument to the static_assert operator would lead to an ICE.
Fixed thus, and tested against trunk on x86_64-unknown-linux-gnu.
gcc/cp/
* semantics.c (finish_static_assert): Don't crash on erroneous
message or condition.
gcc/testsuite/
* g++.dg/cpp0x/static_assert8.C: New test.
From-SVN: r190182
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r-- | gcc/cp/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 86c9097..5452a1c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2012-08-06 Dodji Seketeli <dodji@redhat.com> + + Avoid crashing on erroneous static_assert usage + * semantics.c (finish_static_assert): Don't crash on erroneous + message or condition. + 2012-08-06 Marc Glisse <marc.glisse@inria.fr> Paolo Carlini <paolo.carlini@oracle.com> |