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: unassig...@gcc.gnu.org
        ReportedBy: xinlian...@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

Reply via email to