This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33964] New: internal compiler error: in dependent_type_p, at cp/pt.c:15319 (vararg templates)
- From: "eric dot niebler at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2007 20:24:07 -0000
- Subject: [Bug c++/33964] New: internal compiler error: in dependent_type_p, at cp/pt.c:15319 (vararg templates)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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