https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71054

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-05-11
                 CC|                            |trippels at gcc dot gnu.org
            Summary|internal compiler error: in |[6/7 Regression] ICE: in
                   |expand_expr_real_2, at      |expand_expr_real_2, at
                   |expr.c:8097                 |expr.c:8097
     Ever confirmed|0                           |1

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Creduce came up with:

markus@x4 tmp % cat SPUASMJITRecompiler.ii
namespace std {
template <class> class initializer_list {
  int *_M_array;
  unsigned long _M_len;
};
}
using u32 = int;
template <typename D, typename T = decltype(&D::UNK)> struct spu_decoder {
  struct A {
    u32 magn;
    u32 value;
    T pointer;
  };
  spu_decoder() { std::initializer_list<A> a{{0, 0, &D::FMS}}; }
};
struct spu_recompiler {
  void FMS(int);
  void UNK(int);
};
spu_decoder<spu_recompiler> b;

markus@x4 tmp % g++ -O2 -c SPUASMJITRecompiler.ii
SPUASMJITRecompiler.ii: In constructor ‘spu_decoder<D, T>::spu_decoder() [with
D = spu_recompiler; T = void (spu_recompiler::*)(int)]’:
SPUASMJITRecompiler.ii:14:61: internal compiler error: in add_expr, at
tree.c:7870
markus@x4 tmp % g++ -c SPUASMJITRecompiler.ii
g++: internal compiler error: Segmentation fault (program cc1plus)

Reply via email to