------- 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

Reply via email to