[Bug c++/70095] [C++14] Link error on partially specialized variable template

2016-07-18 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70095

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |6.0

--- Comment #4 from Jason Merrill  ---
(In reply to Tom Honermann from comment #2)
> The change in comment 1 introduced a regression.  The following test passes
> with r234230, but fails with r234231:
> 
> $ cat t.cpp
> template 
> constexpr bool b = false;
> template
> constexpr bool b = true;
> int main() {
> b;
> b;
> }
> 
> $ g++ -std=c++14 t.cpp -o t
> /tmp/ccJTAQId.s: Assembler messages:
> /tmp/ccJTAQId.s:27: Error: symbol `_ZL1b' is already defined

I think this was fixed by the patch for 69515.  In any case, it works now.

[Bug c++/70095] [C++14] Link error on partially specialized variable template

2016-05-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70095

Jason Merrill  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2016-05-30
 CC||jason at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org
 Ever confirmed|0   |1

[Bug c++/70095] [C++14] Link error on partially specialized variable template

2016-05-18 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70095

--- Comment #3 from Jason Merrill  ---
Author: jason
Date: Wed May 18 15:58:54 2016
New Revision: 236407

URL: https://gcc.gnu.org/viewcvs?rev=236407=gcc=rev
Log:
PR c++/70095 - variable template partial specialization

* pt.c (instantiate_decl): Fix call to variable_template_p.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ50.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/pt.c

[Bug c++/70095] [C++14] Link error on partially specialized variable template

2016-03-28 Thread tom at honermann dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70095

Tom Honermann  changed:

   What|Removed |Added

 CC||tom at honermann dot net

--- Comment #2 from Tom Honermann  ---
The change in comment 1 introduced a regression.  The following test passes
with r234230, but fails with r234231:

$ cat t.cpp
template 
constexpr bool b = false;
template
constexpr bool b = true;
int main() {
b;
b;
}

$ g++ -std=c++14 t.cpp -o t
/tmp/ccJTAQId.s: Assembler messages:
/tmp/ccJTAQId.s:27: Error: symbol `_ZL1b' is already defined

[Bug c++/70095] [C++14] Link error on partially specialized variable template

2016-03-15 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70095

--- Comment #1 from Jason Merrill  ---
Author: jason
Date: Tue Mar 15 19:37:37 2016
New Revision: 234231

URL: https://gcc.gnu.org/viewcvs?rev=234231=gcc=rev
Log:
PR c++/70095
* pt.c (instantiate_decl): Fix call to variable_template_p.

Added:
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ50.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c