https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65907
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-04-27
Ever confirmed|0 |1
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
trippels@gcc2-power8 Support % < YAMLParser.ii
template <typename> class A;
template <class> struct B;
template <typename _CharT, typename = A<_CharT>> class C;
template <> struct B<char> { static int m_fn1(char *); };
template <typename, typename> class C {
struct _Alloc_hider {
_Alloc_hider(int);
} _M_dataplus;
public:
C(char *p1) : _M_dataplus(0) { p1 ? B<char>::m_fn1(p1) : 0; }
};
int a, c;
char b[0];
inline char *fn1(char *p1, int) {
--p1;
if (a == 0)
*--p1 = '0';
if (a)
*--p1 = 0;
return p1;
}
inline C<char> fn2() { return fn1(b, 0); }
void fn3() {
for (int i;; ++i)
if (i)
if (c)
fn2();
}
trippels@gcc2-power8 Support % /home/trippels/gcc_test/usr/local/bin/g++ -fPIC
-std=c++11 -O2 -c YAMLParser.ii
YAMLParser.ii: In function ‘void fn3()’:
YAMLParser.ii:24:6: internal compiler error: in set_lattice_value, at
tree-ssa-ccp.c:535
void fn3() {
^
0x10b6f98b set_lattice_value
../../gcc/gcc/tree-ssa-ccp.c:535
0x10b70bbf ccp_visit_phi_node
../../gcc/gcc/tree-ssa-ccp.c:1147
0x10c14337 simulate_stmt
../../gcc/gcc/tree-ssa-propagate.c:344
0x10c16507 simulate_block
../../gcc/gcc/tree-ssa-propagate.c:485
0x10c16507 ssa_propagate(ssa_prop_result (*)(gimple_statement_base*,
edge_def**, tree_node**), ssa_prop_result (*)(gphi*))
../../gcc/gcc/tree-ssa-propagate.c:928
0x10b6db3f do_ssa_ccp
../../gcc/gcc/tree-ssa-ccp.c:2411
0x10b6db3f execute
../../gcc/gcc/tree-ssa-ccp.c:2444
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.