public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6601: Parse error when using :: qualified name in template.
@ 2002-05-07 15:26 rhauser
  0 siblings, 0 replies; 2+ messages in thread
From: rhauser @ 2002-05-07 15:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6601
>Category:       c++
>Synopsis:       Parse error when using :: qualified name in template.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue May 07 15:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Reiner Hauser
>Release:        3.0.2
>Organization:
Michigan State University
>Environment:
Linux RedHat 7.1 with local changes
System: Linux wensley-clued0 2.4.14-0.1XFSsmp #1 SMP Mon Nov 12 09:22:08 CST 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --prefix=/scratch/1/veseli/gcc --with-gnu-as --with-gnu-ld --enable-shared --enable-threads --enable-languages=c,c++
>Description:
	When instantiating a template class with a another class qualified
with :: the compiler reports a parse error. This is true both for standard
templates like vector or user defined templates.

>How-To-Repeat:
	
	template<class T>
	class MyTemplate
	{
	};
	
	class X {};
	
	MyTemplate<::X> test;
	
>Fix:
	Replacing ::X with 'class ::X' allows to work around the problem.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/6601: Parse error when using :: qualified name in template.
@ 2002-05-14  7:53 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2002-05-14  7:53 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rhauser

Old Synopsis: [parser] Parse error when using :: qualified name in template.
New Synopsis: Parse error when using :: qualified name in template.

State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Tue May 14 07:53:42 2002
State-Changed-Why:
    Oops, my mistake.  Not a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6601


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

end of thread, other threads:[~2002-05-14 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-07 15:26 c++/6601: Parse error when using :: qualified name in template rhauser
2002-05-14  7:53 lerdsuwa

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).