This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53605] New: Compiler ICEs in size_binop_loc
- From: "xinliangli at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 07 Jun 2012 17:33:34 +0000
- Subject: [Bug c++/53605] New: Compiler ICEs in size_binop_loc
- Auto-submitted: auto-generated
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