This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70449] [6 Regression] ICE with -Wall on valid code on x86_64-linux-gnu in pp_string, at pretty-print.c:928
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2016 11:29:00 +0000
- Subject: [Bug c++/70449] [6 Regression] ICE with -Wall on valid code on x86_64-linux-gnu in pp_string, at pretty-print.c:928
- Auto-submitted: auto-generated
- References: <bug-70449-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70449
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think the problem is that when we see
enum E { a = f<0> () };
we try to instantiate_decl "f", but at that time the "return 0;" wasn't seen
yet, so check_return_expr wasn't yet called thus current_function_returns_value
is not set when instantiating f.