This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5650: g++ allows uninitialized const members



>Number:         5650
>Category:       c++
>Synopsis:       g++ allows uninitialized const members
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 09 20:56:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paul J. Lucas
>Release:        3.0.3
>Organization:
>Environment:
System: Linux powerbook 2.2.19-pjl #1 Sun Sep 2 04:31:35 PDT 2001 ppc unknown
Architecture: ppc
host: powerpc-unknown-linux-gnu
build: powerpc-unknown-linux-gnu
target: powerpc-unknown-linux-gnu
configured with: /tmp/gcc-3.0.3/configure --prefix=/usr/local/packages/gcc-3.0.3 --enable-threads=posix --enable-languages=c,c++ --disable-nls
>Description:
Given:
	struct S {
		S() { }
		int const i;
	};

	main() {
		S s;
	}

g++ accepts allows S::i to go uninitialized.
>How-To-Repeat:
Compile the above.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]