re PR c++/30849 (ICE with invalid asm statement)
authorLee Millward <lee.millward@gmail.com>
Thu, 2 Aug 2007 17:50:55 +0000 (17:50 +0000)
committerLee Millward <lmillward@gcc.gnu.org>
Thu, 2 Aug 2007 17:50:55 +0000 (17:50 +0000)
commitf8ff69ea9a57722ddf980ea9834682c2137ea8db
tree82375a521dcc73acb141e68c2640f8efff29abdb
parent2ee0c1fb57b65ecef76c0fb14c9d05c4fbec2980
re PR c++/30849 (ICE with invalid asm statement)

PR c++/30849
PR c++/30850
PR c++/30851
* parser.c (cp_parser_asm_definition): Detect and discard asm
statements with invalid inputs or outputs.
        (cp_parser_asm_operand_list): Return error mark node if any
        of the operands are invalid. Adjust documentation.

PR c++/30849
* g++.dg/parse/asm1.C: New test.

PR c++/30850
* g++.dg/parse/asm2.C: Likewise.

PR c++/30851
* g++.dg/parse/asm3.C: Likewise.

From-SVN: r127167
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/asm1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/asm2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/asm3.C [new file with mode: 0644]