public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56585] New: Cannot introduce a qualified type - Elaborated type specifiers
@ 2013-03-09 23:47 fpelliccioni at gmail dot com
  2013-03-10 10:25 ` [Bug c++/56585] " paolo.carlini at oracle dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: fpelliccioni at gmail dot com @ 2013-03-09 23:47 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56585
           Summary: Cannot introduce a qualified type - Elaborated type
                    specifiers
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fpelliccioni@gmail.com


I understand that the following code should yield a compiler error. 
According to the C++ Standard ( N3485 )
    3.4.4 Elaborated type specifiers [basic.lookup.elab]
    See example in paragraph 3

Instead, the compiler issues a warning.

// Begin code-----------------
struct Data {};
struct ::Data;
int main () {}

// End code-------------------

Verified on:
    4.8.0 (20130204)
    4.7.2
    4.6.3

Used as follows:    
    -std=c++11 -Wall -W -pedantic -O2
    or
    -std=c++0x -Wall -W -pedantic -O2


Thanks and Regards,
Fernando Pelliccioni


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

end of thread, other threads:[~2013-03-15 15:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-09 23:47 [Bug c++/56585] New: Cannot introduce a qualified type - Elaborated type specifiers fpelliccioni at gmail dot com
2013-03-10 10:25 ` [Bug c++/56585] " paolo.carlini at oracle dot com
2013-03-10 10:33 ` redi at gcc dot gnu.org
2013-03-10 11:22 ` fpelliccioni at gmail dot com
2013-03-10 12:42 ` redi at gcc dot gnu.org
2013-03-10 17:18 ` fpelliccioni at gmail dot com
2013-03-15 15:50 ` paolo.carlini at oracle dot com

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