public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9120: [3.4 regression] iostream 'forgotten' if included after template definition
@ 2003-01-06 22:55 bangerth
0 siblings, 0 replies; only message in thread
From: bangerth @ 2003-01-06 22:55 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, stefaandr
Old Synopsis: iostream 'forgotten' if included after template definition
New Synopsis: [3.4 regression] iostream 'forgotten' if included after template definition
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Jan 6 14:55:43 2003
State-Changed-Why:
Indeed. This is a regression on the main branch, it works with
a snapshot of 3.3 right before the branch occured. I have
no idea what this could be.
In a debugger one can see that the function is actually
called, but nothing happens in it and one cannot go
further into the calls to op<< or such. This, of course,
is due to the fact that the assembler output for this
function looks like so:
.type p<int>::a(), @function p<int>::a():
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
If one adds other statements to the function, for example
the line
int i = 1234;
then one gets assembler output for them, so _something_ is
happening. But the line with std::cerr is not compiled.
Very strange, indeed.
Note that the program should not compile in the first
place, but does only since gcc does not implement two-stage
name lookup.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9120
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-06 22:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-06 22:55 c++/9120: [3.4 regression] iostream 'forgotten' if included after template definition 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).