This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28407] New: [4.2 regression] Issue with anonymous namespace


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]