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++/53605] New: Compiler ICEs in size_binop_loc


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

             Bug #: 53605
           Summary: Compiler ICEs in size_binop_loc
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: xinliangli@gmail.com


Compile the small program with gcc (trunk or 4-7 compiler), the compiler will
ICE.


template <bool lhs_is_null_literal>
class EqHelper {
 public:
  template <typename T1, typename T2>
  static int  Compare( const T1& expected,
                         const T2& actual);
};
void foo(){
  static const int kData[] = {};
     ::EqHelper<false>::Compare(kData, "abc");
}

This is a regression from gcc4_6.

David


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