https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89767

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Though, following doesn't ICE:
template <int N>
constexpr bool foo (int x) { return x; }
template <int N>
constexpr bool bar (int x) { return foo <N> (x); }
template <int N>
constexpr bool baz (int x) { return bar <N> (x); }
auto a = baz<0> (0);
and the IDENTIFIER_BINDING of x is saved/restored through push_to_top_level and
pop_from_top_level.  For the above testcase it is called too, but for some
reason the binding that is pushed to toplevel is the bo function one, not aw.

Reply via email to