This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52458] [c++0x] compiler fails on for(:*this) with non-public inheritance with message: Internal compiler error: Error reporting routines re-entered.
- From: "crimaniak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 02 Mar 2012 14:49:41 +0000
- Subject: [Bug c++/52458] [c++0x] compiler fails on for(:*this) with non-public inheritance with message: Internal compiler error: Error reporting routines re-entered.
- Auto-submitted: auto-generated
- References: <bug-52458-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52458
--- Comment #5 from Alexey Kulentsov <crimaniak at gmail dot com> 2012-03-02 14:49:41 UTC ---
(In reply to comment #4)
>It works ok if you do the conversion to the base class explicitly:
Yes, I just make public inheritance so this problem is non-blocking for me,
but this was a bug so I post it. It's pity MinGW updated only to 4.6.2.
> I think the range-for code needs to do overload resolution in the class' scope,
> but it fails to and tries to say the begin/end members are protected, then gets
> into trouble while trying to print the error message.
Agree. Diagnostics problem.