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

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).