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++/20157] New: Internal compiler error on invalid code


4.0.0 outputs internal compiler error on the following invalid code.
3.3/3.4 silently ignores it.

if the invalid template function specialization is a definition 3.3/3.4
correctly reports it, 4.0.0 still outputs an internal compiler error.

template<typename AT>
struct A{
  template<typename T>
  void function(T);
};

template<>
template<typename ABC,typename DEF>
void A<int>::function(ABC);

-- 
           Summary: Internal compiler error on invalid code
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sstrasser at systemhaus-gruppe dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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