public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26950]  New: Error diagnostic not issued for unacceptable result of lookup for a name used in a nested-name-specifier
@ 2006-03-30 19:20 widman at gimpel dot com
  2006-03-30 20:02 ` [Bug c++/26950] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: widman at gimpel dot com @ 2006-03-30 19:20 UTC (permalink / raw)
  To: gcc-bugs

The following should elicit an error during processing of e0's initializer: 

namespace N {
    const int a = 42;
    enum N { e0 = N::a };
}

... because 3.4.3p1 [basic.lookup.qual] indicates that the enumeration [tag]
name N should be found during lookup in the nested-name-specifier and renders
the program ill-formed.


-- 
           Summary: Error diagnostic not issued for unacceptable result of
                    lookup for a name used in a nested-name-specifier
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: widman at gimpel dot com


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


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

end of thread, other threads:[~2022-01-08 10:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-26950-4@http.gcc.gnu.org/bugzilla/>
2020-08-26  8:55 ` [Bug c++/26950] Error diagnostic not issued for unacceptable result of lookup for a name used in a nested-name-specifier redi at gcc dot gnu.org
2020-08-26  8:59 ` redi at gcc dot gnu.org
2022-01-08 10:48 ` pinskia at gcc dot gnu.org
2006-03-30 19:20 [Bug c++/26950] New: " widman at gimpel dot com
2006-03-30 20:02 ` [Bug c++/26950] " pinskia at gcc dot gnu dot org
2006-03-30 21:06 ` widman at gimpel dot com
2006-03-30 23:31 ` widman at gimpel dot com
2006-03-31  5:36 ` widman at gimpel dot com
2008-02-10 14:09 ` manu 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).