This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28407] New: [4.2 regression] Issue with anonymous namespace
- From: "jakub at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2006 10:17:23 -0000
- Subject: [Bug c++/28407] New: [4.2 regression] Issue with anonymous namespace
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
template<const char *str>
const char *baz ()
{
return str;
}
namespace { char foo[] = "foo"; };
const char *
bar ()
{
return baz<foo> ();
}
used to compile before the "make anon-namespace non-public" changes and still
compiles when the anon namespace is changed for a named namespace and using
namespace below it.
--
Summary: [4.2 regression] Issue with anonymous namespace
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28407