public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66923] Variable template initialized using auto deduces wrong type
[not found] <bug-66923-4@http.gcc.gnu.org/bugzilla/>
@ 2015-08-05 17:43 ` jason at gcc dot gnu.org
2015-08-05 17:56 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-05 17:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66923
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-08-05
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/66923] Variable template initialized using auto deduces wrong type
[not found] <bug-66923-4@http.gcc.gnu.org/bugzilla/>
2015-08-05 17:43 ` [Bug c++/66923] Variable template initialized using auto deduces wrong type jason at gcc dot gnu.org
@ 2015-08-05 17:56 ` jason at gcc dot gnu.org
2015-08-06 4:10 ` jason at gcc dot gnu.org
2015-08-06 4:12 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-05 17:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66923
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Aug 5 17:56:14 2015
New Revision: 226642
URL: https://gcc.gnu.org/viewcvs?rev=226642&root=gcc&view=rev
Log:
PR c++/66260
PR c++/66596
PR c++/66649
PR c++/66923
* pt.c (lookup_template_variable): Use NULL_TREE for type.
(instantiate_template_1): Also set DECL_TI_ARGS based on
the immediate parent.
(tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: Handle variable templates.
(finish_template_variable): Add complain parm.
* cp-tree.h: Adjust.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ36.C
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ38.C
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ39.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ32.C
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ35.C
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/66923] Variable template initialized using auto deduces wrong type
[not found] <bug-66923-4@http.gcc.gnu.org/bugzilla/>
2015-08-05 17:43 ` [Bug c++/66923] Variable template initialized using auto deduces wrong type jason at gcc dot gnu.org
2015-08-05 17:56 ` jason at gcc dot gnu.org
@ 2015-08-06 4:10 ` jason at gcc dot gnu.org
2015-08-06 4:12 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-06 4:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66923
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Aug 6 04:10:01 2015
New Revision: 226657
URL: https://gcc.gnu.org/viewcvs?rev=226657&root=gcc&view=rev
Log:
PR c++/66260
PR c++/66596
PR c++/66649
PR c++/66923
* pt.c (lookup_template_variable): Use NULL_TREE for type.
(instantiate_template_1): Also set DECL_TI_ARGS based on
the immediate parent.
(tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: Handle variable templates.
(finish_template_variable): Add complain parm.
* cp-tree.h: Adjust.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ32.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ35.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ36.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ38.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ39.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/cp-tree.h
branches/gcc-5-branch/gcc/cp/pt.c
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/66923] Variable template initialized using auto deduces wrong type
[not found] <bug-66923-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2015-08-06 4:10 ` jason at gcc dot gnu.org
@ 2015-08-06 4:12 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-06 4:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66923
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |5.3
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 5.3 and 6.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-06 4:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-66923-4@http.gcc.gnu.org/bugzilla/>
2015-08-05 17:43 ` [Bug c++/66923] Variable template initialized using auto deduces wrong type jason at gcc dot gnu.org
2015-08-05 17:56 ` jason at gcc dot gnu.org
2015-08-06 4:10 ` jason at gcc dot gnu.org
2015-08-06 4:12 ` jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).