[Bug c++/79385] ICE on (likely) valid C++11 code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14451

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 6 11:49:00 GMT 2017


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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with either r166167 or r166168, likely the first one.
Before that it has been rejected:
pr79385.C:12:26: error: a call to a constructor cannot appear in a
constant-expression
pr79385.C:12:28: error: ‘.’ cannot appear in a constant-expression
pr79385.C:12:31: error: a function call cannot appear in a constant-expression


More information about the Gcc-bugs mailing list