public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20240] New: invalid using-redeclaration accepted
@ 2005-02-28 10:30 sstrasser at systemhaus-gruppe dot de
  2005-02-28 12:04 ` [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: sstrasser at systemhaus-gruppe dot de @ 2005-02-28 10:30 UTC (permalink / raw)
  To: gcc-bugs

sorry if this is a dupe, I've checked the summaries, but there are too many
about "using" to read each in detail.

I think this is a bug:

namespace A{int a;};

namespace C{
  int a;
  using A::a;
}

accepted.

if not, then this is one:
namespace A{int a;};

namespace C{
  double a;
  using A::a;
}

error: `a' is already declared in this scope

-- 
           Summary: invalid using-redeclaration accepted
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sstrasser at systemhaus-gruppe dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
@ 2005-02-28 12:04 ` pinskia at gcc dot gnu dot org
  2005-03-01  1:19 ` 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 @ 2005-02-28 12:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-28 00:27 -------
Confirmed, a regression from 3.2.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |accepts-invalid
      Known to fail|                            |4.0.0 3.3.2 3.4.0
      Known to work|                            |3.2.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-28 00:27:24
               date|                            |
            Summary|invalid using-redeclaration |[3.3/3.4/4.0/4.1 Regression]
                   |accepted                    |invalid using-redeclaration
                   |                            |accepted
   Target Milestone|---                         |3.4.4


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


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

* [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
  2005-02-28 12:04 ` [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-03-01  1:19 ` pinskia at gcc dot gnu dot org
  2005-03-12  6:21 ` lerdsuwa 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 @ 2005-03-01  1:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-01 01:19 -------
: Search converges between 2003-03-11-trunk (#204) and 2003-03-12-trunk (#205).
: Search converges between 2003-03-10-3.3 (#48) and 2003-03-12-3.3 (#49).

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


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


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

* [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
  2005-02-28 12:04 ` [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-03-01  1:19 ` pinskia at gcc dot gnu dot org
@ 2005-03-12  6:21 ` lerdsuwa at gcc dot gnu dot org
  2005-03-12 12:40 ` lerdsuwa at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-03-12  6:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-03-12 06:21 -------
Patch in progress.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |lerdsuwa at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-02-28 00:27:24         |2005-03-12 06:21:06
               date|                            |


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


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

* [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
                   ` (2 preceding siblings ...)
  2005-03-12  6:21 ` lerdsuwa at gcc dot gnu dot org
@ 2005-03-12 12:40 ` lerdsuwa at gcc dot gnu dot org
  2005-03-19 12:35 ` cvs-commit at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-03-12 12:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-03-12 12:40 -------
Patch submitted:
  http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01208.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
                   ` (3 preceding siblings ...)
  2005-03-12 12:40 ` lerdsuwa at gcc dot gnu dot org
@ 2005-03-19 12:35 ` cvs-commit at gcc dot gnu dot org
  2005-03-19 12:42 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-19 12:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-19 12:35 -------
Subject: Bug 20240

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	lerdsuwa@gcc.gnu.org	2005-03-19 12:35:24

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

Log message:
	PR c++/20240
	* decl.c (decls_match): Compare context of VAR_DECL.
	
	* g++.dg/lookup/using13.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4667&r2=1.4668
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1379&r2=1.1380
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5182&r2=1.5183
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/using13.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
                   ` (4 preceding siblings ...)
  2005-03-19 12:35 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-19 12:42 ` cvs-commit at gcc dot gnu dot org
  2005-03-19 14:01 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-19 12:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-19 12:42 -------
Subject: Bug 20240

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	lerdsuwa@gcc.gnu.org	2005-03-19 12:41:52

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

Log message:
	PR c++/20240
	* decl.c (decls_match): Compare context of VAR_DECL.
	
	* g++.dg/lookup/using13.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.12&r2=1.4648.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1371.2.3&r2=1.1371.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.52&r2=1.5084.2.53
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/using13.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
                   ` (5 preceding siblings ...)
  2005-03-19 12:42 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-19 14:01 ` cvs-commit at gcc dot gnu dot org
  2005-03-19 14:16 ` [Bug c++/20240] [3.3 " lerdsuwa at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-19 14:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-19 14:01 -------
Subject: Bug 20240

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	lerdsuwa@gcc.gnu.org	2005-03-19 14:01:02

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

Log message:
	PR c++/20240
	* decl.c (decls_match): Compare context of VAR_DECL.
	
	* g++.dg/lookup/using13.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.206&r2=1.3892.2.207
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1174.2.33&r2=1.1174.2.34
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.373&r2=1.3389.2.374
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/using13.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.4.1



-- 


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


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

* [Bug c++/20240] [3.3 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
                   ` (6 preceding siblings ...)
  2005-03-19 14:01 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-19 14:16 ` lerdsuwa at gcc dot gnu dot org
  2005-04-09 11:01 ` sstrasser at systemhaus-gruppe dot de
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-03-19 14:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-03-19 14:15 -------
Fixed in 3.4/4.0/4.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW
            Summary|[3.3/3.4/4.0/4.1 Regression]|[3.3 Regression] invalid
                   |invalid using-redeclaration |using-redeclaration accepted
                   |accepted                    |


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


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

* [Bug c++/20240] [3.3 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
                   ` (7 preceding siblings ...)
  2005-03-19 14:16 ` [Bug c++/20240] [3.3 " lerdsuwa at gcc dot gnu dot org
@ 2005-04-09 11:01 ` sstrasser at systemhaus-gruppe dot de
  2005-04-18 12:08 ` sstrasser at systemhaus-gruppe dot de
  2005-06-06 10:43 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: sstrasser at systemhaus-gruppe dot de @ 2005-04-09 11:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sstrasser at systemhaus-gruppe dot de  2005-04-09 11:00 -------
any reason why this bug is still NEW?

-- 


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


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

* [Bug c++/20240] [3.3 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
                   ` (8 preceding siblings ...)
  2005-04-09 11:01 ` sstrasser at systemhaus-gruppe dot de
@ 2005-04-18 12:08 ` sstrasser at systemhaus-gruppe dot de
  2005-06-06 10:43 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: sstrasser at systemhaus-gruppe dot de @ 2005-04-18 12:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sstrasser at systemhaus-gruppe dot de  2005-04-18 12:08 -------
fixed

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


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


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

* [Bug c++/20240] [3.3 Regression] invalid using-redeclaration accepted
  2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
                   ` (9 preceding siblings ...)
  2005-04-18 12:08 ` sstrasser at systemhaus-gruppe dot de
@ 2005-06-06 10:43 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-06 10:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-06 10:43 -------
*** Bug 21928 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wolfgang dot roehrl at de
                   |                            |dot gi-de dot com


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


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

end of thread, other threads:[~2005-06-06 10:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-28 10:30 [Bug c++/20240] New: invalid using-redeclaration accepted sstrasser at systemhaus-gruppe dot de
2005-02-28 12:04 ` [Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-03-01  1:19 ` pinskia at gcc dot gnu dot org
2005-03-12  6:21 ` lerdsuwa at gcc dot gnu dot org
2005-03-12 12:40 ` lerdsuwa at gcc dot gnu dot org
2005-03-19 12:35 ` cvs-commit at gcc dot gnu dot org
2005-03-19 12:42 ` cvs-commit at gcc dot gnu dot org
2005-03-19 14:01 ` cvs-commit at gcc dot gnu dot org
2005-03-19 14:16 ` [Bug c++/20240] [3.3 " lerdsuwa at gcc dot gnu dot org
2005-04-09 11:01 ` sstrasser at systemhaus-gruppe dot de
2005-04-18 12:08 ` sstrasser at systemhaus-gruppe dot de
2005-06-06 10:43 ` pinskia at gcc dot gnu dot org

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