This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/69438] [6 Regression] ICE with noreturn and function that return non-POD
- From: "abe_skolnik at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Jan 2016 00:29:22 +0000
- Subject: [Bug target/69438] [6 Regression] ICE with noreturn and function that return non-POD
- Auto-submitted: auto-generated
- References: <bug-69438-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69438
--- Comment #6 from Abe <abe_skolnik at yahoo dot com> ---
Further analysis shows that the ICE "needs" _both_ of the "V(0)" calls;
removing either one from the following eliminates the ICE.
__attribute__((noreturn)) void V(int);
struct R{R(){} R(const R&r){}};
R f(){V(0); return R();}
R c(){V(0); return R();}