c++/1556: parse error when accessing global typenames in template argument

robt@flyingpig.com robt@flyingpig.com
Fri Jan 5 02:26:00 GMT 2001


>Number:         1556
>Category:       c++
>Synopsis:       parse error when accessing global typenames in template argument
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 05 02:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     robt@flyingpig.com
>Release:        2.97 20001216
>Organization:
>Environment:
--enable-shared --enable-threads --enable-long-long
>Description:
class Bla
{};

template <class T>
class Template
{};

namespace Foo
{
  Template<::Bla> tmp;
};

gives syntax error on line 10. it shouldn't.
>How-To-Repeat:
compile above piece of code.
>Fix:
none found
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-bugs mailing list