public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/5339: Internal error on illegal code (argument list for template missing)
@ 2002-01-09 14:06 pcarlini
  0 siblings, 0 replies; only message in thread
From: pcarlini @ 2002-01-09 14:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5339
>Category:       c++
>Synopsis:       Internal error on illegal code (argument list for template missing)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 09 14:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paolo Carlini
>Release:        gcc version 3.1 20020106 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
Internal error on this very simple code illegal snippet:
////////////////
namespace std
{
  template <class charT, class traits>
  class basic_filebuf;
}

std::basic_filebuf b1;
///////////////////
reduced.cc:7: `template<class charT, class traits> class std::basic_filebuf' as
   declarator
Please submit a full bug report,
with preprocessed source if appropriate.

Interestingly, the ICE disappear if the global namespace is
used:
///////////////
template <class charT, class traits>
class basic_filebuf;

basic_filebuf b1;
///////////////

reduced_f.cc:4: syntax error before `;' token
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-09 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-09 14:06 c++/5339: Internal error on illegal code (argument list for template missing) pcarlini

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