This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27177] [4.0/4.1/4.2/4.3 Regression] ICE in build_simple_base_path, at cp/class.c:474
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2007 19:02:29 -0000
- Subject: [Bug c++/27177] [4.0/4.1/4.2/4.3 Regression] ICE in build_simple_base_path, at cp/class.c:474
- References: <bug-27177-12540@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from mark at codesourcery dot com 2007-05-02 20:02 -------
Subject: Re: [4.0/4.1/4.2/4.3 Regression] ICE in build_simple_base_path,
at cp/class.c:474
crowl at google dot com wrote:
> I think (B*)(D*)0 is a conversion under 4.10.
>
>> Has anyone asked about this case on the core reflector?
>
> Would you like me to?
Yes, please!
If this is considered valid, it's important to understand why: is it
your NULL pointer argument, or that this is a static_cast, even though D
isn't complete yet? That will affect the validity of:
struct B {};
struct D;
D* p;
struct D: public B {
static const int i = sizeof ((B*)p);
};
which is similar, but does not involve the NULL pointer.
Thanks,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27177