http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48073
Summary: ICE with -flto in templated C++ code
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
The following code produces an ICE if compiled with -flto on g++-4.6.0
SVN revision 170867
$$$> g++ -flto zombie_coldatoms.cpp
zombie_coldatoms.cpp:48:1: internal compiler error: tree check: did not expect
class ‘type’, have ‘type’ (record_type) in contains_placeholder_p, at
tree.c:2820
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Replacing the default constructor DDQMC(); in line 36 by the automatic default
constructor (i.e. removing the corresponding code) makes the code compile.
The problem does not occur with g++-4.5.1