public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9907: [3.4 regression] sizeof considered as non constant
@ 2003-03-03 14:49 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-03-03 14:49 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nes, nobody
Synopsis: [3.4 regression] sizeof considered as non constant
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Mar 3 14:49:14 2003
State-Changed-Why:
Confirmed, a regression on mainline. I think that this is a
duplicate of some other high-pri regression, but can't seem
to find it right now. That one was extracted from BOOST,
which uses the style of programming used here as well quite
extensively. I think this should really be fixed before any
release.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9907
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/9907: [3.4 regression] sizeof considered as non constant
@ 2003-03-25 10:26 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2003-03-25 10:26 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nathan, nes, nobody
Synopsis: [3.4 regression] sizeof considered as non constant
Responsible-Changed-From-To: nathan->unassigned
Responsible-Changed-By: nathan
Responsible-Changed-When: Tue Mar 25 10:05:16 2003
Responsible-Changed-Why:
This turns out to be hard to fix right now. We have to get the value-dependent expression machinery right first.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9907
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/9907: [3.4 regression] sizeof considered as non constant
@ 2003-03-21 12:16 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2003-03-21 12:16 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nathan, nes, nobody
Synopsis: [3.4 regression] sizeof considered as non constant
Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Fri Mar 21 12:16:39 2003
Responsible-Changed-Why:
ok, looks similar to 9978
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9907
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/9907: [3.4 regression] sizeof considered as non constant
@ 2003-03-02 22:36 nes
0 siblings, 0 replies; 4+ messages in thread
From: nes @ 2003-03-02 22:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 9907
>Category: c++
>Synopsis: [3.4 regression] sizeof considered as non constant
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sun Mar 02 22:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Nicolas Burrus
>Release: 3.4 20030302 (experimental)
>Organization:
LRDE
>Environment:
System: Linux meissa 2.4.20 #1 Wed Dec 4 21:05:57 CET 2002 i686 unknown unknown GNU/Linux
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /home/nes/work/ext/gcc/configure --prefix=/opt/gcc-3.4-cvs --enable-languages=c,c++
>Description:
Using sizeof(function) in a template function is considered non constant.
>How-To-Repeat:
Try to compile this code :
template <unsigned n> struct bar {};
int foo();
template <class T>
void baz()
{
bar<sizeof(foo())> b;
}
Here is the output of g++ 3.4 :
foo.cc: In function `void baz()':
foo.cc:18: error: non-constant `sizeof ((*foo()()))' cannot be used as template
If baz() is not template, it works.
>Fix:
No fix found.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-25 10:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-03 14:49 c++/9907: [3.4 regression] sizeof considered as non constant bangerth
-- strict thread matches above, loose matches on Subject: below --
2003-03-25 10:26 nathan
2003-03-21 12:16 nathan
2003-03-02 22:36 nes
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).