public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17421] New: g++ accepts invalid qualified declarator-id
@ 2004-09-11 19:29 ppluzhnikov at charter dot net
  2004-09-11 19:32 ` [Bug c++/17421] " ppluzhnikov at charter dot net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ppluzhnikov at charter dot net @ 2004-09-11 19:29 UTC (permalink / raw)
  To: gcc-bugs

This is similar to, but not exactly like, bug 16782

$ cat junk.cc
void ::foo() { }

$ /usr/local/gcc-3.4.2/bin/g++ -c junk.cc -Wall
$ edgcpfe junk.cc
"junk.cc", line 1: error: the global scope has no "foo"
  void ::foo() { }
         ^
1 error detected in the compilation of "junk.cc".


The Standard (ISO+IEC+14882-1998) says in 8.3 paragraph 1:

 When the declarator-id is qualified,
 the declaration shall refer to a previously declared member of the
 class or namespace to which the qualifier refers, and the member
 shall not have been introduced by a usingdeclaration in the scope
 of the class or namespace nominated by the nested-name-specifier of
 the declarator-id.

-- 
           Summary: g++ accepts invalid qualified declarator-id
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ppluzhnikov at charter dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/17421] g++ accepts invalid qualified declarator-id
  2004-09-11 19:29 [Bug c++/17421] New: g++ accepts invalid qualified declarator-id ppluzhnikov at charter dot net
@ 2004-09-11 19:32 ` ppluzhnikov at charter dot net
  2004-09-12 22:57 ` bangerth at dealii dot org
  2004-12-01  2:04 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ppluzhnikov at charter dot net @ 2004-09-11 19:32 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
      Known to fail|                            |3.1 3.2 3.3 3.4.0 3.4.2


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


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

* [Bug c++/17421] g++ accepts invalid qualified declarator-id
  2004-09-11 19:29 [Bug c++/17421] New: g++ accepts invalid qualified declarator-id ppluzhnikov at charter dot net
  2004-09-11 19:32 ` [Bug c++/17421] " ppluzhnikov at charter dot net
@ 2004-09-12 22:57 ` bangerth at dealii dot org
  2004-12-01  2:04 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-09-12 22:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-09-12 22:57 -------
Confirmed. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-12 22:57:25
               date|                            |


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


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

* [Bug c++/17421] g++ accepts invalid qualified declarator-id
  2004-09-11 19:29 [Bug c++/17421] New: g++ accepts invalid qualified declarator-id ppluzhnikov at charter dot net
  2004-09-11 19:32 ` [Bug c++/17421] " ppluzhnikov at charter dot net
  2004-09-12 22:57 ` bangerth at dealii dot org
@ 2004-12-01  2:04 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-01  2:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-12-01 02:04 -------
This is more or less a duplicate of PR 18466.

The problem was fixed on mainline by Mark. He also added the testcase
g++.dg/parse/qualified3.C which contains the example above. So let's
track the problem in PR 18466.

*** This bug has been marked as a duplicate of 18466 ***

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


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


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-11 19:29 [Bug c++/17421] New: g++ accepts invalid qualified declarator-id ppluzhnikov at charter dot net
2004-09-11 19:32 ` [Bug c++/17421] " ppluzhnikov at charter dot net
2004-09-12 22:57 ` bangerth at dealii dot org
2004-12-01  2:04 ` reichelt 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).