public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13140] New: declaration in global namespace, definition inside named or anon namespace
@ 2003-11-20 19:49 phil dot el at wanadoo dot fr
  2003-11-20 20:44 ` [Bug c++/13140] " bangerth at dealii dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: phil dot el at wanadoo dot fr @ 2003-11-20 19:49 UTC (permalink / raw)
  To: gcc-bugs

gcc accept this illegal code, at least with 2.91, 2.95.3 and
gcc version 3.4 20031120 (experimental) so this is not a
regression

struct foo {
  foo();
};


namespace bar {
foo::foo() { }
}

Comeau catch it at foo::foo() definition
error: overloaded function "foo::foo" cannot be defined in the current scope

regards,
Philippe Elie

-- 
           Summary: declaration in global namespace, definition inside named
                    or anon namespace
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phil dot el at wanadoo dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-06-21 23:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-13140-3534@http.gcc.gnu.org/bugzilla/>
2006-01-11 14:16 ` [Bug c++/13140] declaration in global namespace, definition inside named or anon namespace pinskia at gcc dot gnu dot org
2006-02-21 21:11 ` pinskia at gcc dot gnu dot org
2006-06-21 23:11 ` pinskia at gcc dot gnu dot org
2006-06-21 23:15 ` zvonsully at gmail dot com
2006-06-21 23:40 ` pinskia at gcc dot gnu dot org
2003-11-20 19:49 [Bug c++/13140] New: " phil dot el at wanadoo dot fr
2003-11-20 20:44 ` [Bug c++/13140] " bangerth at dealii dot org
2004-02-03  8:16 ` pinskia at gcc dot gnu dot org
2004-03-23 20:15 ` bangerth at dealii dot org
2004-05-26 12:31 ` pinskia at gcc dot gnu dot org
2004-10-03 14:57 ` pinskia at gcc dot gnu dot org
2005-04-01 13:08 ` pinskia at gcc dot gnu dot org
2005-09-15 16:04 ` cvs-commit at gcc dot gnu dot org
2005-09-16 18:16 ` 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).