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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|7.4                         |---
            Summary|[7/8/9 Regression] ICE in   |ICE in tsubst_copy using
                   |tsubst_copy using           |non-constant expression as
                   |non-constant expression as  |a non-type template
                   |a non-type template         |argument
                   |argument                    |
      Known to fail|                            |4.9.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hardly a regression - 4.8.5 which doesn't ICE doesn't grok auto params:

t.C: In function ‘auto foo(bool)’:
t.C:9:24: error: parameter declared ‘auto’
       auto f = [](auto c) -> B<decltype(c)::call(b)> { };
                        ^
t.C:9:32: error: decltype evaluates to ‘<type error>’, which is not a class or
enumeration type
       auto f = [](auto c) -> B<decltype(c)::call(b)> { };
                                ^
...

ICEs since 4.9.0.

Reply via email to