This is the mail archive of the gcc@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]

Re: Default constructor and uninitialized const


> Peter Seiderer wrote:
> 
> >/*
> > * Gives error when compiled with gcc (eg. 3.4.2, gcc-4.0-20050123).
> > * No error with intel (8.1) or windows compiler.
> > */
> >  
> >
> ... try what they call "strict-ansi" mode...
> 
> Paolo.
> 

# /opt/gcc-3.4.2/bin/g++ -Wall -ansi default_constructor.cpp
default_constructor.cpp:17: error: uninitialized const `a2'

Any hints to relevant g++ and/or C++ documentation?

Peter

-- 
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl


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