This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82085] New: Crash: Template variable reference used in nested template alias
- From: "rbock at eudoxos dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 02 Sep 2017 17:05:43 +0000
- Subject: [Bug c++/82085] New: Crash: Template variable reference used in nested template alias
- Auto-submitted: auto-generated
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.