[3.3] Fix PR/9386, PR/8801
Mark Mitchell
mark@codesourcery.com
Wed Jan 22 16:35:00 GMT 2003
--On Wednesday, January 22, 2003 10:20:36 AM +0100 Josef Zlomek
<zlomekj@suse.cz> wrote:
> Hi,
>
> g++ compiling following testcase segfaults
> in gcc/cp/typeck.c:build_class_member_access_expr
> because of bug in handling anonymous unions.
>
> struct Bla
> {
> void operator()();
> };
>
> struct Adjustment {
> void set_lower(float lower) {changed();}
> union {
> Bla changed;
> };
> };
>
> The bug is fixed on mainline so I was searching for a patch which
> fixed it. I have found that one chunk from Mark Mitchell's patch
> http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01410.html
> fixes the segfault when compiling the testcase, it is this patch.
>
> Bootstrapped/regtested i386 3_3-branch.
> OK for 3_3-branch?
Yes, thanks!
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-patches
mailing list