diff options
| author | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-06 16:19:09 +0000 |
|---|---|---|
| committer | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-06 16:19:09 +0000 |
| commit | 530f9e0066c3a5601f144cb75a6f0e3c21c136cd (patch) | |
| tree | 7715884997385ba1fb75caae6a47b4cf5b6ec6ad /libjava/classpath/java/text | |
| parent | 448e3e57d75caa510a8b44572209cf13970f5346 (diff) | |
| download | ppe42-gcc-530f9e0066c3a5601f144cb75a6f0e3c21c136cd.tar.gz ppe42-gcc-530f9e0066c3a5601f144cb75a6f0e3c21c136cd.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190182 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/java/text')
0 files changed, 0 insertions, 0 deletions

