public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67829] New: Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter
@ 2015-10-03 4:29 rs2740 at gmail dot com
2015-10-22 14:45 ` [Bug c++/67829] " paolo.carlini at oracle dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: rs2740 at gmail dot com @ 2015-10-03 4:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67829
Bug ID: 67829
Summary: Bogus "ambiguous template instantiation" error with
partial specializations involving a template template
parameter
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rs2740 at gmail dot com
Target Milestone: ---
Repro:
template<class> class Purr { };
template<template<class> class, class>
class Meow;
template<template<class> class P>
class Meow<P, P<int>> { }; // 1
template<template<class> class P, class T>
class Meow<P, P<T>> { }; // 2
Meow<Purr, Purr<int>> kitty;
This should be unambiguous (and use #1), but GCC reports an ambiguity.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/67829] Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter
2015-10-03 4:29 [Bug c++/67829] New: Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter rs2740 at gmail dot com
@ 2015-10-22 14:45 ` paolo.carlini at oracle dot com
2021-06-06 16:48 ` ppalka at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-10-22 14:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67829
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-10-22
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/67829] Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter
2015-10-03 4:29 [Bug c++/67829] New: Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter rs2740 at gmail dot com
2015-10-22 14:45 ` [Bug c++/67829] " paolo.carlini at oracle dot com
@ 2021-06-06 16:48 ` ppalka at gcc dot gnu.org
2021-06-10 22:33 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-06-06 16:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67829
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org
CC| |ppalka at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/67829] Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter
2015-10-03 4:29 [Bug c++/67829] New: Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter rs2740 at gmail dot com
2015-10-22 14:45 ` [Bug c++/67829] " paolo.carlini at oracle dot com
2021-06-06 16:48 ` ppalka at gcc dot gnu.org
@ 2021-06-10 22:33 ` cvs-commit at gcc dot gnu.org
2021-06-10 22:35 ` ppalka at gcc dot gnu.org
2021-12-09 17:04 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-10 22:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67829
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:edec2660ff4890ecf8cc191f7c92cf527de51fe2
commit r12-1374-gedec2660ff4890ecf8cc191f7c92cf527de51fe2
Author: Patrick Palka <ppalka@redhat.com>
Date: Thu Jun 10 18:31:21 2021 -0400
c++: matching deduced template template parameters [PR67829]
During deduction, when the template of the argument for a bound ttp
is a template template parameter, we need to consider the
TEMPLATE_TEMPLATE_PARAMETER for matching rather than the TEMPLATE_DECL
thereof, because the canonical form of a template template parameter as
a template argument is the former tree, not the latter.
PR c++/67829
gcc/cp/ChangeLog:
* pt.c (unify) <case BOUND_TEMPLATE_TEMPLATE_PARM>: When
the TEMPLATE_DECL of a BOUND_TEMPLATE_TEMPLATE_PARM argument is
a template template parameter, adjust to the
TEMPLATE_TEMPLATE_PARAMETER before falling through.
gcc/testsuite/ChangeLog:
* g++.dg/template/ttp34.C: New test.
* g++.dg/template/ttp34a.C: New test.
* g++.dg/template/ttp34b.C: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/67829] Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter
2015-10-03 4:29 [Bug c++/67829] New: Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter rs2740 at gmail dot com
` (2 preceding siblings ...)
2021-06-10 22:33 ` cvs-commit at gcc dot gnu.org
@ 2021-06-10 22:35 ` ppalka at gcc dot gnu.org
2021-12-09 17:04 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-06-10 22:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67829
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |12.0
Keywords| |rejects-valid
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed for GCC 12
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/67829] Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter
2015-10-03 4:29 [Bug c++/67829] New: Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter rs2740 at gmail dot com
` (3 preceding siblings ...)
2021-06-10 22:35 ` ppalka at gcc dot gnu.org
@ 2021-12-09 17:04 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-09 17:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67829
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pyer4 at free dot fr
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 77335 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-12-09 17:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-03 4:29 [Bug c++/67829] New: Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter rs2740 at gmail dot com
2015-10-22 14:45 ` [Bug c++/67829] " paolo.carlini at oracle dot com
2021-06-06 16:48 ` ppalka at gcc dot gnu.org
2021-06-10 22:33 ` cvs-commit at gcc dot gnu.org
2021-06-10 22:35 ` ppalka at gcc dot gnu.org
2021-12-09 17:04 ` pinskia 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).