public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10224: [3.4 regression] Problem with integral constants (+ICE)
@ 2003-03-27 14:06 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2003-03-27 14:06 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, nathan, nathan
Synopsis: [3.4 regression] Problem with integral constants (+ICE)
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Thu Mar 27 14:04:28 2003
State-Changed-Why:
2003-03-27 Nathan Sidwell <nathan@codesourcery.com>
PR c++/10224
* pt.c (lookup_template_class): Only check instantiated args if
they do not contain template parameters.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10224
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10224: [3.4 regression] Problem with integral constants (+ICE)
@ 2003-03-27 12:36 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2003-03-27 12:36 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, nathan, nathan
Synopsis: [3.4 regression] Problem with integral constants (+ICE)
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Thu Mar 27 12:32:30 2003
State-Changed-Why:
yup
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10224
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10224: [3.4 regression] Problem with integral constants (+ICE)
@ 2003-03-26 17:15 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-03-26 17:15 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, nathan, nathan, nobody
Synopsis: [3.4 regression] Problem with integral constants (+ICE)
Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: bangerth
Responsible-Changed-When: Wed Mar 26 16:59:41 2003
Responsible-Changed-Why:
Nathan, I think your patch caused this. Would you mind taking
a look?
Thanks
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10224
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/10224: [3.4 regression] Problem with integral constants (+ICE)
@ 2003-03-26 16:59 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-03-26 16:59 UTC (permalink / raw)
To: gcc-gnats
>Number: 10224
>Category: c++
>Synopsis: [3.4 regression] Problem with integral constants (+ICE)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 26 16:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
present mainline
>Description:
Nathan, I believe that this started with your patch from
2003-03-22 fixing PRs 9978 and 9708. Here's a little piece
extracted from boost that since breaks building my library:
-----------------------------
template <bool B> struct X {
struct I {};
};
template <typename T> struct Y {
static const bool selector = true;
typedef typename X<selector>::I helper;
};
Y<int> i;
--------------------------------
With this I get
deal.II/base> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c y.cc
y.cc: In instantiation of `X<Y<T>::selector>':
y.cc:7: instantiated from here
y.cc:1: error: integral expression `Y<T>::selector' is not constant
y.cc:1: error: trying to instantiate `template<bool B> struct X'
y.cc:2: error: integral expression `Y<T>::selector' is not constant
y.cc:2: error: trying to instantiate `template<bool B> struct X'
y.cc:2: error: integral expression `Y<T>::selector' is not constant
y.cc:2: error: trying to instantiate `template<bool B> struct X<B>::I'
y.cc:2: error: integral expression `Y<T>::selector' is not constant
y.cc:2: error: trying to instantiate `template<bool B> struct X'
y.cc:2: error: integral expression `Y<T>::selector' is not constant
y.cc:2: error: trying to instantiate `template<bool B> struct X<B>::I'
y.cc:2: internal compiler error: in instantiate_class_template, at cp/pt.c:5391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
I'm not so much concerned with the ICE, which I don't get
on my code, but with the handling of integral constants. I'm
pretty sure the code should actually compile.
W.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-27 14:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-27 14:06 c++/10224: [3.4 regression] Problem with integral constants (+ICE) nathan
-- strict thread matches above, loose matches on Subject: below --
2003-03-27 12:36 nathan
2003-03-26 17:15 bangerth
2003-03-26 16:59 bangerth
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).