c++/6667: ICE on illegal code (regression from 3.0.4)

pcarlini@unitus.it pcarlini@unitus.it
Wed May 15 13:06:00 GMT 2002


>Number:         6667
>Category:       c++
>Synopsis:       ICE on illegal code (regression from 3.0.4)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 15 13:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paolo Carlini
>Release:        3.1
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
g++3.1 (and current 3.2) ICE on this tiny snippet:

#include <vector>

class MyyClass {
  std::vector v;
};

reduced.cc:4: `template<class _Tp, class _Alloc> class std::vector' as
   declarator
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
This is a regression wrt 3.0.4, which, instead:
reduced.cc:4: `template<_Tp, _Alloc> class std::vector' as declarator (compiler
   error)
reduced.cc:4: syntax error before `;' token
>Fix:

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



More information about the Gcc-bugs mailing list