c++/5339: Internal error on illegal code (argument list for template missing)
pcarlini@unitus.it
pcarlini@unitus.it
Wed Jan 9 14:06:00 GMT 2002
>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:
More information about the Gcc-prs
mailing list