https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78708
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.0 Summary|[ASAN][LTO] ICE in |[7 Regression][ASAN][LTO] |expand_ASAN_MARK, at |ICE in expand_ASAN_MARK, at |internal-fn.c:380 - when |internal-fn.c:380 - when |compiling but not linking |compiling but not linking |with ASAN |with ASAN --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- Test case (works with GCC 6) g++ -fsanitize=address -flto -o test.o -c test.ii g++ test.o gives the ICE from above. Using: -------- namespace std { template < class _E > class initializer_list { typedef const _E *iterator; iterator _M_array; long unsigned int _M_len; }; } struct Box { }; static void foo (Box * __restrict out2) { Box b; *out2 = b; }