public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33964]  New: internal compiler error: in dependent_type_p, at cp/pt.c:15319 (vararg templates)
@ 2007-10-31 20:24 eric dot niebler at gmail dot com
  2007-11-19  4:44 ` [Bug c++/33964] [4.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: eric dot niebler at gmail dot com @ 2007-10-31 20:24 UTC (permalink / raw)
  To: gcc-bugs

I'm not sure if the following should compile or not, but it certainly should
ICE the compiler. Latest gcc from SVN with vararg template patches from Doug
Gregor. Build with -std=c++0x.

Doug, no rush on this one. Just logging it for posterity.

template<typename ... Args>
struct foo
{
    static bool const value = true;
};

template<typename ... Args>
struct foo< typename Args::is_applied... >
{
    static bool const value = false;
};

struct not_applied { typedef void is_applied; };
struct applied { typedef applied is_applied; };

int main()
{
    foo<applied, applied> i;
}


-- 
           Summary: internal compiler error: in dependent_type_p, at
                    cp/pt.c:15319 (vararg templates)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eric dot niebler at gmail dot com


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


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

end of thread, other threads:[~2008-01-15 16:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-31 20:24 [Bug c++/33964] New: internal compiler error: in dependent_type_p, at cp/pt.c:15319 (vararg templates) eric dot niebler at gmail dot com
2007-11-19  4:44 ` [Bug c++/33964] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-11-27  5:54 ` mmitchel at gcc dot gnu dot org
2007-12-02 21:03 ` pinskia at gcc dot gnu dot org
2008-01-09  1:12 ` pcarlini at suse dot de
2008-01-11 14:45 ` dgregor at gcc dot gnu dot org
2008-01-12 19:24 ` andreasmeier80 at gmx dot de
2008-01-15 16:35 ` dgregor at gcc dot gnu dot org
2008-01-15 16:36 ` dgregor at gcc dot gnu dot 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).