[Bug c++/30863] [4.1/4.2/4.3 Regression] Unsigned templatized struct treated as unsigned int

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 23 04:37:00 GMT 2007



------- Comment #2 from mmitchel at gcc dot gnu dot org  2007-03-23 04:36 -------
Subject: Bug 30863

Author: mmitchel
Date: Fri Mar 23 04:36:33 2007
New Revision: 123151

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123151
Log:
        PR c++/30863
        * parser.c (cp_parser_parse_and_diagnose_invalid_type_name): Do
        not consume tokens when failing.
        PR c++/30863
        * g++.dg/template/error24.C: New test.
        * g++.dg/parse/tmpl-outside1.C: Tweak error markers.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/error24.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/parser.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/parse/tmpl-outside1.C


-- 


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



More information about the Gcc-bugs mailing list