https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82085
Bug ID: 82085 Summary: Crash: Template variable reference used in nested template alias Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de Target Milestone: --- I am currently porting sqlpp11 to C++17 and encountered a compiler crash using the following code // ------------------------------- template <const char& V> using char_sequence_t = int; template <typename T> constexpr char name_of_v = 'x'; template <typename T> using type = char_sequence_t<name_of_v<T>>; // ------------------------------- g++ (GCC) 8.0.0 20170902 (experimental) Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.