From 865166c80e0c41faaee1c4e59894246aa8672531 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 5 Feb 2018 11:15:55 +0000 Subject: [PATCH] re PR c++/82782 (ICE: nested template alias and specialized template with auto template parameter) 2018-02-05 Paolo Carlini PR c++/82782 * g++.dg/cpp1z/inline-var4.C: New. From-SVN: r257388 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp1z/inline-var4.C | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1z/inline-var4.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 074e6ea..bed5534 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-02-05 Paolo Carlini + + PR c++/82782 + * g++.dg/cpp1z/inline-var4.C: New. + 2018-02-05 Martin Liska * c-c++-common/asan/pointer-compare-1.c: Adjust ASAN_OPTIONS diff --git a/gcc/testsuite/g++.dg/cpp1z/inline-var4.C b/gcc/testsuite/g++.dg/cpp1z/inline-var4.C new file mode 100644 index 0000000..48563b3 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/inline-var4.C @@ -0,0 +1,18 @@ +// PR c++/82782 +// { dg-options -std=c++17 } + +template +struct make_char_sequence; + +template +struct make_char_sequence +{ + using type = int; +}; + +template +using make_char_sequence_t = typename make_char_sequence::type; + +inline constexpr char sample[] = "Sample"; + +using X = make_char_sequence_t; -- 2.7.4