User account creation filtered due to spam.

Bug 20022 - [4.0 Regression] -fno-access-control is broken
Summary: [4.0 Regression] -fno-access-control is broken
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Alexandre Oliva
Keywords: ice-on-valid-code
Depends on:
Reported: 2005-02-17 08:50 UTC by Caolan McNamara
Modified: 2005-02-17 16:43 UTC (History)
2 users (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed: 2005-02-17 16:42:54

bzip2 compressed preprocessed source dump (101.83 KB, application/x-bzip)
2005-02-17 08:51 UTC, Caolan McNamara

Note You need to log in before you can comment on or make changes to this bug.
Description Caolan McNamara 2005-02-17 08:50:30 UTC
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --with-gxx-include-dir=/usr/include/c++/3.4.3
--enable-languages=c,c++,java,f95 --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.0 20050216 (Red Hat 4.0.0-0.24)


Making: ../../../../
g++4 -Wreturn-type -fmessage-length=0 -c -I.  -I. -I../inc -I../../../../inc
-I../../../../inc/bf_sw -I../../../../unx/inc -I../../../../ -I.
-I/usr/src/redhat/BUILD/SRC680_m77/solenv/inc/Xp31 -I/usr/include
-I/usr/X11R6/include     -Is:/solar/inc/hm -I../../../../res -I. -Wuninitialized
-g1 -Os -fno-strict-aliasing  -fno-access-control -pipe -mtune=pentiumpro
-Wno-ctor-dtor-privacy -fno-exceptions   -fpic -DLINUX -DUNX -DVCL -DGCC -DC341
 -o ../../../../
../../../../inc/bf_sw/horiornt.hxx:89: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
Preprocessed source stored into /tmp/ccHn4TcI.out file, please attach this to
your bugreport.
dmake:  Error code 1, while making '../../../../'
'---* *---'
Comment 1 Caolan McNamara 2005-02-17 08:51:27 UTC
Created attachment 8211 [details]
bzip2 compressed preprocessed source dump
Comment 2 Andrew Pinski 2005-02-17 13:03:28 UTC
../../../../inc/bf_sw/horiornt.hxx:89: internal compiler error: vector VEC(deferred_access) last domain 
error, in perform_deferred_access_checks at cp/semantics.c:288
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.

Confirmed, reduced testcase:
enum A{};

-fno-access-control is broken.
Comment 3 CVS Commits 2005-02-17 16:42:26 UTC
Subject: Bug 20022

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	2005-02-17 16:42:10

Modified files:
	gcc/cp         : ChangeLog semantics.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/other: access3.C 

Log message:
	PR c++/20022
	* semantics.c (perform_deferred_access_checks): Use
	get_deferred_access_checks to get the top of the stack.
	PR c++/20022
	* g++.dg/other/access3.C: New.


Comment 4 Alexandre Oliva 2005-02-17 16:43:58 UTC
Fixed with the patch above.