OSDN Git Service

PR c++/30849
authorlmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Aug 2007 17:50:55 +0000 (17:50 +0000)
committerlmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Aug 2007 17:50:55 +0000 (17:50 +0000)
commita40e70de6a82efcb88337c8185aadc28d3ca77f3
tree82375a521dcc73acb141e68c2640f8efff29abdb
parentfc4e97d000c15b74a087f047449534fd1b0cf615
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127167 138bc75d-0d04-0410-961f-82ee72b054a4
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]