This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50114] ICE on invalid code in pop_binding, at cp/name-lookup.c:382
- From: "feedback at launchpad dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 20 Aug 2011 19:04:30 +0000
- Subject: [Bug c++/50114] ICE on invalid code in pop_binding, at cp/name-lookup.c:382
- Auto-submitted: auto-generated
- References: <bug-50114-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50114
--- Comment #2 from Launchpad <feedback at launchpad dot net> 2011-08-20 19:04:30 UTC ---
jas mann added the following comment to Launchpad bug report 827806:
Sorry, I don't know, but I can venture some guesses:
Q. Why did I code in such a manner as to foil parsing of the source?
A. Careless, or worse? The error was obvious of course so in that respect a
crash was as good as a diagnostic.
Q. You want the preprocessor output?
A. It's gone. I thought perhaps the bug reporting script grabbed it.
Q. Why didn't I attach the preprocessor output to the bug report?
A. I guess it wasn't immediately obvious how, and I was in a rush.
Q: What was the code that caused the problem?
A. I don't remember. I corrected it at the time. I should have saved it and
should a similar situation arise in the future I will do so.
Here's the lambda in which the indicated errors used to be if that's any help.
It iterates through a circular list of circular lists.
auto log_serviceorder = [&]() {
const char* F = "%2d. %c[%d] %s id=%d\n";
$LOG(log, BP, TTINF, "service order for %d feeds follows:\n", feedcount);
for(int i=0; i < feedcount; i++) {
circlist<tt::feedhdlr*>::node* feednode =
feedgroups.next()->content.next();
tt::feedhdlr* feed = feednode->content;
$LOG(log,BP,TTINF,F, i,
feed->venue(),feednode->id,feed->name(),feed->id());
}
} ;
> Date: Fri, 19 Aug 2011 09:18:00 +0000
> From: 827806@bugs.launchpad.net
> To: dotmarker@hotmail.com
> Subject: [Bug 827806]
>
> You know what I'm going to ask... ;)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/827806
>
> Title:
> cc1plus bails can't handle situation
>
> Status in The GNU Compiler Collection:
> New
> Status in âgcc-4.5â package in Ubuntu:
> Confirmed
> Status in âgcc-4.6â package in Ubuntu:
> Confirmed
>
> Bug description:
> src/bp/bp_b.cc: In lambda function:
> src/bp/bp_b.cc:538:33: error: invalid conversion from âtt_bookprxor::open_newfeeds()::x2feed*â to âintâ
> src/bp/bp_b.cc:539:25: error: base operand of â->â is not a pointer
> src/bp/bp_b.cc:540:24: error: âx2feeds_iâ was not declared in this scope
> src/bp/bp_b.cc:540:58: error: return-statement with a value, in function returning 'void'
> src/bp/bp_b.cc:545:9: warning: name lookup of âx2feed_iâ changed
> src/bp/bp_b.cc:534:46: warning: matches this âx2feed_iâ under ISO standard rules
> src/bp/bp_b.cc:538:22: warning: matches this âx2feed_iâ under old rules
> src/bp/bp_b.cc:545:55: error: cannot convert âtt::feedhdlr*â to âcirclist<tt::feedhdlr*>*â in assignment
> src/bp/bp_b.cc:546: confused by earlier errors, bailing out
> Preprocessed source stored into /tmp/ccR2q49G.out file, please attach this to your bugreport.
>
> ProblemType: Crash
> DistroRelease: Ubuntu 11.04
> Package: g++-4.5 4.5.2-8ubuntu4
> ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
> Uname: Linux 2.6.38-10-generic x86_64
> NonfreeKernelModules: nvidia
> Architecture: amd64
> Date: Tue Aug 16 23:24:26 2011
> ExecutablePath: /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/cc1plus
> InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
> SourcePackage: gcc-4.5
> UpgradeStatus: Upgraded to natty on 2011-05-29 (79 days ago)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gcc/+bug/827806/+subscriptions
--
http://launchpad.net/bugs/827806