This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30849] [4.1/4.2/4.3 regression] ICE with invalid asm statement



------- Comment #1 from lmillward at gcc dot gnu dot org  2007-08-02 17:51 -------
Subject: Bug 30849

Author: lmillward
Date: Thu Aug  2 17:50:55 2007
New Revision: 127167

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127167
Log:
        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.


Added:
    trunk/gcc/testsuite/g++.dg/parse/asm1.C
    trunk/gcc/testsuite/g++.dg/parse/asm2.C
    trunk/gcc/testsuite/g++.dg/parse/asm3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30849


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]