re PR c++/32108 (ICE with __label__ outside of block scope)
authorPaolo Carlini <pcarlini@suse.de>
Mon, 30 Jul 2007 09:37:20 +0000 (09:37 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 30 Jul 2007 09:37:20 +0000 (09:37 +0000)
commita6d76a9544b6873d32db7ee8445472a2deda033a
tree0e8a252c5c0d0359f7fe24e52ca3bc43a3ef72bb
parent5c24ddaf36be1236f276269d356257d59ff860b3
re PR c++/32108 (ICE with __label__ outside of block scope)

cp/
2007-07-30  Paolo Carlini  <pcarlini@suse.de>

PR c++/32108
* semantics.c (finish_label_stmt): Reject the __label__
extension outside function scopes.

testsuite/
2007-07-30  Paolo Carlini  <pcarlini@suse.de>

PR c++/32108
* g++.dg/ext/label6.C: New.

From-SVN: r127059
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/label6.C [new file with mode: 0644]