This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70095] [C++14] Link error on partially specialized variable template
- From: "tom at honermann dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Mar 2016 12:55:14 +0000
- Subject: [Bug c++/70095] [C++14] Link error on partially specialized variable template
- Auto-submitted: auto-generated
- References: <bug-70095-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70095
Tom Honermann <tom at honermann dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tom at honermann dot net
--- Comment #2 from Tom Honermann <tom at honermann dot net> ---
The change in comment 1 introduced a regression. The following test passes
with r234230, but fails with r234231:
$ cat t.cpp
template <class>
constexpr bool b = false;
template<typename T>
constexpr bool b<T*> = true;
int main() {
b<int*>;
b<double*>;
}
$ g++ -std=c++14 t.cpp -o t
/tmp/ccJTAQId.s: Assembler messages:
/tmp/ccJTAQId.s:27: Error: symbol `_ZL1b' is already defined