[Bug c++/27177] [4.1/4.2/4.3 Regression] ICE in build_simple_base_path, at cp/class.c:474
crowl at google dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 21 20:55:00 GMT 2008
------- Comment #20 from crowl at google dot com 2008-01-21 20:49 -------
Subject: Re: [4.1/4.2/4.3 Regression] ICE in build_simple_base_path, at
cp/class.c:474
On 21 Jan 2008 02:00:07 -0000, mmitchel at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
>
> ------- Comment #19 from mmitchel at gcc dot gnu dot org 2008-01-21 02:00 -------
> Lawrence, thanks for looking into this.
>
> Was there any consensus on whether or not these are static_casts in this
> context?
The discussion didn't say so explicitly, but the obvious conclusion was
that they were static_casts.
> I'm guessing that the eventual resolution is going to be something like
> saying that a cast is a static_cast even if the class is incomplete, so long
> as the bases are known, but that such a static_cast can only be used
> in an un-evaluated context. Is that correct?
If I understand correctly, this issue can only arise in constant expressions.
In any other context (as in default arguments or member bodies) the class
would be complete, and hence the issue is moot. Is there something that
you had in mind?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27177
More information about the Gcc-bugs
mailing list