re PR c++/83918 ([c++17] ICE on constexpr eval of datatype involving function and...
authorJakub Jelinek <jakub@redhat.com>
Tue, 23 Jan 2018 07:46:05 +0000 (08:46 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 23 Jan 2018 07:46:05 +0000 (08:46 +0100)
commit2e73a89bc9a73ef83b7b87fb65b8293c0ae8b693
treea57d36153388b50d5bdc27beb742519a3a6836b2
parent38ad6f8a440f7594b9cea5fb999078035ee36a57
re PR c++/83918 ([c++17] ICE on constexpr eval of datatype involving function and variadic template)

PR c++/83918
* tree.c (maybe_wrap_with_location): Use NON_LVALUE_EXPR rather than
VIEW_CONVERT_EXPR to wrap CONST_DECLs.

* g++.dg/cpp1z/pr83918.C: New test.

From-SVN: r256972
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/pr83918.C [new file with mode: 0644]
gcc/tree.c