[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-11 00:56 -------
Subject: Bug 13544

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	gdr@gcc.gnu.org	2004-01-11 00:56:02

Modified files:
	gcc/cp         : ChangeLog decl.c 
Added files:
	gcc/testsuite/g++.dg/lookup: enum1.C 

Log message:
	PR c++/13544
	* decl.c (build_enumerator): Set DECL_CONTEXT after the
	enumerator
	has been pushed.
	(pushdecl): Don't use DECL_NAMESPACE_SCOPE_P to test whether a
	decl has a namespace-scope; that isn't really what it means.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.235&r2=1.3076.2.236
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.965.2.70&r2=1.965.2.71
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/enum1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1



-- 


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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: