public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes
@ 2004-01-02 11:23 debian-gcc at lists dot debian dot org
  2004-01-02 13:28 ` [Bug c++/13544] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-01-02 11:23 UTC (permalink / raw)
  To: gcc-bugs

[forwarded from http://bugs.debian.org/225663]

this regression was introduced between 20031206 and 20031229 on the 3.3 branch.

the following example

enum Enum1
{
    None
};

namespace Test
{
    enum Enum2
    {
        None
    };
}

int main()
{
}
 
compiles withtest.cpp:11: error: conflicting types for `None'
test.cpp:4: error: previous declaration as `Enum1 None'

-- 
           Summary: [3.3.3 regression] "conflicting types" for enums in
                    different scopes
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
@ 2004-01-02 13:28 ` pinskia at gcc dot gnu dot org
  2004-01-02 13:42 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-02 13:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-02 13:28 -------
*** Bug 13546 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olh at suse dot de


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
  2004-01-02 13:28 ` [Bug c++/13544] " pinskia at gcc dot gnu dot org
@ 2004-01-02 13:42 ` pinskia at gcc dot gnu dot org
  2004-01-02 15:12 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-02 13:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-02 13:42 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-02 13:42:51
               date|                            |
   Target Milestone|---                         |3.3.3


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
  2004-01-02 13:28 ` [Bug c++/13544] " pinskia at gcc dot gnu dot org
  2004-01-02 13:42 ` pinskia at gcc dot gnu dot org
@ 2004-01-02 15:12 ` pinskia at gcc dot gnu dot org
  2004-01-08 15:52 ` falk at debian dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-02 15:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-02 15:12 -------
Reverting this patch:
2003-12-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>

        Backport from mainline:
        2003-12-22  Mark Mitchell  <mark@codesourcery.com>

        PR C++/12862
        * decl.c (pushdecl): Look up all namespace-scope entities in their
        corresponding namespace.

Fixes the problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdr at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
                   ` (2 preceding siblings ...)
  2004-01-02 15:12 ` pinskia at gcc dot gnu dot org
@ 2004-01-08 15:52 ` falk at debian dot org
  2004-01-08 21:44 ` neroden at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: falk at debian dot org @ 2004-01-08 15:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From falk at debian dot org  2004-01-08 15:52 -------
*** Bug 13613 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mdorey at bluearc dot com


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
                   ` (3 preceding siblings ...)
  2004-01-08 15:52 ` falk at debian dot org
@ 2004-01-08 21:44 ` neroden at gcc dot gnu dot org
  2004-01-09  4:28 ` gdr at integrable-solutions dot net
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: neroden at gcc dot gnu dot org @ 2004-01-08 21:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neroden at gcc dot gnu dot org  2004-01-08 21:44 -------
This is biting Debian rather badly.  Can this possibly be fixed quickly?  :-/

-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
                   ` (4 preceding siblings ...)
  2004-01-08 21:44 ` neroden at gcc dot gnu dot org
@ 2004-01-09  4:28 ` gdr at integrable-solutions dot net
  2004-01-10 16:57 ` rschiele at uni-mannheim dot de
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-01-09  4:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2004-01-09 04:27 -------
Subject: Re:  [3.3.3 regression] "conflicting types" for enums in different scopes

"neroden at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| This is biting Debian rather badly.  Can this possibly be fixed quickly?  :-/

Someone had the bright idea to steal my laptop in my office this
afternoon, 1-2 days delay may be expected.


-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
                   ` (5 preceding siblings ...)
  2004-01-09  4:28 ` gdr at integrable-solutions dot net
@ 2004-01-10 16:57 ` rschiele at uni-mannheim dot de
  2004-01-10 17:33 ` gdr at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rschiele at uni-mannheim dot de @ 2004-01-10 16:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rschiele at uni-mannheim dot de  2004-01-10 16:57 -------
*** Bug 13639 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rschiele at uni-mannheim dot
                   |                            |de


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
                   ` (6 preceding siblings ...)
  2004-01-10 16:57 ` rschiele at uni-mannheim dot de
@ 2004-01-10 17:33 ` gdr at gcc dot gnu dot org
  2004-01-11  0:56 ` gdr at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-01-10 17:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-01-10 17:33 -------
Mine

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |gdr at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
                   ` (8 preceding siblings ...)
  2004-01-11  0:56 ` gdr at gcc dot gnu dot org
@ 2004-01-11  0:56 ` cvs-commit at gcc dot gnu dot org
  2004-01-11 13:04 ` andreas dot meier_ at gmx dot de
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-11  0:56 UTC (permalink / raw)
  To: gcc-bugs


------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
                   ` (7 preceding siblings ...)
  2004-01-10 17:33 ` gdr at gcc dot gnu dot org
@ 2004-01-11  0:56 ` gdr at gcc dot gnu dot org
  2004-01-11  0:56 ` cvs-commit at gcc dot gnu dot org
  2004-01-11 13:04 ` andreas dot meier_ at gmx dot de
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-01-11  0:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-01-11 00:56 -------
just fixed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/13544] [3.3.3 regression] "conflicting types" for enums in different scopes
  2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
                   ` (9 preceding siblings ...)
  2004-01-11  0:56 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-11 13:04 ` andreas dot meier_ at gmx dot de
  10 siblings, 0 replies; 12+ messages in thread
From: andreas dot meier_ at gmx dot de @ 2004-01-11 13:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From andreas dot meier_ at gmx dot de  2004-01-11 13:04 -------
It may be useful to have the tastcase on mainline

-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-01-11 13:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-02 11:23 [Bug c++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes debian-gcc at lists dot debian dot org
2004-01-02 13:28 ` [Bug c++/13544] " pinskia at gcc dot gnu dot org
2004-01-02 13:42 ` pinskia at gcc dot gnu dot org
2004-01-02 15:12 ` pinskia at gcc dot gnu dot org
2004-01-08 15:52 ` falk at debian dot org
2004-01-08 21:44 ` neroden at gcc dot gnu dot org
2004-01-09  4:28 ` gdr at integrable-solutions dot net
2004-01-10 16:57 ` rschiele at uni-mannheim dot de
2004-01-10 17:33 ` gdr at gcc dot gnu dot org
2004-01-11  0:56 ` gdr at gcc dot gnu dot org
2004-01-11  0:56 ` cvs-commit at gcc dot gnu dot org
2004-01-11 13:04 ` andreas dot meier_ at gmx dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).