This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20981] New: [4.0/4.1 Regression] ICE in import_export_decl with invalid template code


struct S {};

template <class T>
struct Test
{
      static int myInt;
};
template <class T> int Test<S>::myInt;

Note we accepted this code before which is just wrong.
ICC gives:
t.cc(8): error: "Test<S>" is not a class template
  template <class T> int Test<S>::myInt;
                         ^

compilation aborted for t.cc (code 2)
: Search converges between 2004-07-29-trunk (#498) and 2004-07-30-trunk (#499).

-- 
           Summary: [4.0/4.1 Regression] ICE in import_export_decl with
                    invalid template code
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20981


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]