[Bug c++/26269] [4.0/4.1/4.2 regression] Declaring a variable too late yields bogus error message

lmillward at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 21 17:28:00 GMT 2006



------- Comment #6 from lmillward at gcc dot gnu dot org  2006-08-21 17:27 -------
Subject: Bug 26269

Author: lmillward
Date: Mon Aug 21 17:27:48 2006
New Revision: 116301

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116301
Log:
        PR c++/26269
        * decl.c (duplicate_decls): Return early if either
        newdecl or olddecl is error_mark_node.

        * g++.dg/other/error14.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/other/error14.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list