public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43824]  New: C++0x feature "inline namespace" enabled under -std=c++98; no warnings
@ 2010-04-20 21:46 bergner at gcc dot gnu dot org
  2010-04-21  0:24 ` [Bug c++/43824] " paolo dot carlini at oracle dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bergner at gcc dot gnu dot org @ 2010-04-20 21:46 UTC (permalink / raw)
  To: gcc-bugs

Inline namespace definitions are a feature proposed under C++0x.  The feature
is not part of the C++98/03 standards.  Code that uses it under -std=c++98
-Wall -Wextra -pedantic should get at least a warning.

bergner@etna:~/gcc/BUGS/> cat t.cpp 
inline namespace A { }
bergner@etna:~/gcc/BUGS/> g++ -std=c++98 -Wall -Wextra -pedantic -c t.cpp 
bergner@etna:~/gcc/BUGS/> echo $?
0

This seems to also be the case for GCC 4.4 and 4.5.


-- 
           Summary: C++0x feature "inline namespace" enabled under -
                    std=c++98; no warnings
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bergner at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-09-10 18:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20 21:46 [Bug c++/43824] New: C++0x feature "inline namespace" enabled under -std=c++98; no warnings bergner at gcc dot gnu dot org
2010-04-21  0:24 ` [Bug c++/43824] " paolo dot carlini at oracle dot com
2010-04-21  9:41 ` redi at gcc dot gnu dot org
2010-04-21 16:54 ` pinskia at gcc dot gnu dot org
2010-04-21 17:05 ` redi at gcc dot gnu dot org
2010-07-26 10:00 ` rodrigorivascosta at gmail dot com
2010-09-10 18:29 ` jason 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).