https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87554
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[8/9 Regression] internal |[8 Regression] internal |compiler error: in |compiler error: in |record_reference, at |record_reference, at |cgraphbuild.c:64 |cgraphbuild.c:64 --- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #8) > The constructor indeed looks broken to me: it should not have naked > var_decl. So I am changing component to C++ I agree that the C++ front end is wrong here, but I also wonder why cgraph is looking at the DECL_INITIAL of a DECL_EXTERNAL variable.