This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70449] [6 Regression] ICE with -Wall on valid code on x86_64-linux-gnu in pp_string, at pretty-print.c:928


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]