public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52830] New: ICE: "canonical types differ for identity types ..." when attempting SFINAE with member type
@ 2012-04-02  7:03 lucdanton at free dot fr
  2014-05-30 20:53 ` [Bug c++/52830] " paolo.carlini at oracle dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: lucdanton at free dot fr @ 2012-04-02  7:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52830

             Bug #: 52830
           Summary: ICE: "canonical types differ for identity types ..."
                    when attempting SFINAE with member type
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: lucdanton@free.fr


Created attachment 27061
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27061
Testcase

Using

$ gcc-snapshot --version
gcc-snapshot (Debian 20120313-1) 4.8.0 20120313 (experimental) [trunk revision
185345]

I get the following when attempting to compile what I believe to be a correct
testcase program (although I could be wrong on correctness):

main.cpp:25:21: internal compiler error: canonical types differ for identical
types std::enable_if<std::is_same<typename foo<T>::type, U>::value, int> and
std::enable_if<std::is_same<T, U>::value, int>

The program compiles and behaves as expected if T is used instead of
type/typename foo<T>::type in both declaration and definition, or if bar is
defined inline.


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-12-23 14:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-02  7:03 [Bug c++/52830] New: ICE: "canonical types differ for identity types ..." when attempting SFINAE with member type lucdanton at free dot fr
2014-05-30 20:53 ` [Bug c++/52830] " paolo.carlini at oracle dot com
2014-06-23 17:42 ` patrick.a.moran at gmail dot com
2014-06-23 17:43 ` patrick.a.moran at gmail dot com
2015-04-29 18:14 ` dcb314 at hotmail dot com
2020-11-10 20:03 ` [Bug c++/52830] ICE: "canonical types differ for identical " cvs-commit at gcc dot gnu.org
2020-11-20 12:31 ` acoplan at gcc dot gnu.org
2020-11-20 17:39 ` acoplan at gcc dot gnu.org
2020-12-15 23:41 ` mpolacek at gcc dot gnu.org
2020-12-16  8:30 ` acoplan at gcc dot gnu.org
2021-01-14 13:35 ` nathan at gcc dot gnu.org
2021-04-27 11:37 ` jakub at gcc dot gnu.org
2021-04-28 19:21 ` xry111 at mengyan1223 dot wang
2021-07-28  7:02 ` rguenth at gcc dot gnu.org
2021-12-22 18:26 ` jason at gcc dot gnu.org
2021-12-23 14:04 ` ppalka 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).