public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33965] New: internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates)
@ 2007-10-31 21:36 eric dot niebler at gmail dot com
2007-11-05 17:03 ` [Bug c++/33965] " dgregor at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: eric dot niebler at gmail dot com @ 2007-10-31 21:36 UTC (permalink / raw)
To: gcc-bugs
In the following SFINAE scenario involving vararg templates an non-type
template parameters, the compiler ICEs instead of ignoring the specialization.
Latest SVN g++ with patches from Doug Gregor for vararg templates.
template<typename T>
struct foo
{
static bool const value = false;
};
template<template<typename...> class T, typename... Args>
struct foo<T<Args...> >
{
static bool const value = false;
};
template<int I>
struct int_
{};
int main()
{
foo<int_<0> > f; // ICE
}
--
Summary: internal compiler error: tree check: expected class
'type', have 'constant' (integer_cst) in cp_type_quals,
at cp/typeck.c:6955 (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=33965
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33965] internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates)
2007-10-31 21:36 [Bug c++/33965] New: internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates) eric dot niebler at gmail dot com
@ 2007-11-05 17:03 ` dgregor at gcc dot gnu dot org
2007-11-19 4:42 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2007-11-05 17:03 UTC (permalink / raw)
To: gcc-bugs
--
dgregor at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dgregor at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-11-05 17:03:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33965
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33965] internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates)
2007-10-31 21:36 [Bug c++/33965] New: internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates) eric dot niebler at gmail dot com
2007-11-05 17:03 ` [Bug c++/33965] " dgregor at gcc dot gnu dot org
@ 2007-11-19 4:42 ` pinskia at gcc dot gnu dot org
2007-12-18 21:20 ` dgregor at gcc dot gnu dot org
2007-12-18 22:16 ` dgregor at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-19 4:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-11-19 04:42 -------
I get this now:
t.cc:21: error: cannot expand 'Args ...' into a fixed-length argument list
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33965
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33965] internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates)
2007-10-31 21:36 [Bug c++/33965] New: internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates) eric dot niebler at gmail dot com
2007-11-05 17:03 ` [Bug c++/33965] " dgregor at gcc dot gnu dot org
2007-11-19 4:42 ` pinskia at gcc dot gnu dot org
@ 2007-12-18 21:20 ` dgregor at gcc dot gnu dot org
2007-12-18 22:16 ` dgregor at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2007-12-18 21:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dgregor at gcc dot gnu dot org 2007-12-18 21:19 -------
Subject: Bug 33965
Author: dgregor
Date: Tue Dec 18 21:19:41 2007
New Revision: 131041
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131041
Log:
2007-12-18 Douglas Gregor <doug.gregor@gmail.com>
Jakub Jelinek <jakub@redhat.com>
PR c++/32565
PR c++/33943
PR c++/33965
* pt.c (template_template_parm_bindings_ok_p): New; verifies
bindings of template template parameters after all template
arguments have been deduced.
(coerce_template_parms): Don't complain when COMPLAIN doesn't
include tf_error.
(fn_type_unification): Use template_template_parm_bindings_ok_p.
(unify): Deal with variadic, bound template template parameters.
(get_class_bindings): Use template_template_parm_bindings_ok_p.
2007-12-18 Douglas Gregor <doug.gregor@gmail.com>
Jakub Jelinek <jakub@redhat.com>
PR c++/32565
PR c++/33943
PR c++/33965
* g++.dg/cpp0x/variadic86.C: New.
* g++.dg/cpp0x/variadic87.C: New.
* g++.dg/cpp0x/variadic84.C: New.
* g++.dg/cpp0x/variadic85.C: New.
* g++.dg/template/ttp25.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic84.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic85.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic86.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic87.C
trunk/gcc/testsuite/g++.dg/template/ttp25.C
Modified:
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33965
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33965] internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates)
2007-10-31 21:36 [Bug c++/33965] New: internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates) eric dot niebler at gmail dot com
` (2 preceding siblings ...)
2007-12-18 21:20 ` dgregor at gcc dot gnu dot org
@ 2007-12-18 22:16 ` dgregor at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2007-12-18 22:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dgregor at gcc dot gnu dot org 2007-12-18 22:16 -------
Fixed on the trunk
--
dgregor at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33965
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-12-18 22:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-31 21:36 [Bug c++/33965] New: internal compiler error: tree check: expected class 'type', have 'constant' (integer_cst) in cp_type_quals, at cp/typeck.c:6955 (vararg templates) eric dot niebler at gmail dot com
2007-11-05 17:03 ` [Bug c++/33965] " dgregor at gcc dot gnu dot org
2007-11-19 4:42 ` pinskia at gcc dot gnu dot org
2007-12-18 21:20 ` dgregor at gcc dot gnu dot org
2007-12-18 22:16 ` 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).