[Bug c++/69515] partial specialization of variable templates is broken
tom at honermann dot net
gcc-bugzilla@gcc.gnu.org
Mon Mar 28 08:50:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69515
Tom Honermann <tom at honermann dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tom at honermann dot net
--- Comment #1 from Tom Honermann <tom at honermann dot net> ---
I'm also experiencing this; gcc r234493.
$ 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/ccYIejpd.s: Assembler messages:
/tmp/ccYIejpd.s:27: Error: symbol `_ZL1b' is already defined
$ gcc --version
gcc (GCC) 6.0.0 20160327 (experimental)
...
More information about the Gcc-bugs
mailing list