Default constructor and uninitialized const

2005-02-22 Thread Peter Seiderer
{ }; static const A2 a2; int main(int argc, char *argv[]) { return 0; } # /opt/gcc-3.4.2/bin/g++ default_constructor.cpp default_constructor.cpp:17: error: uninitialized const `a3' Bug or feature? Peter Seiderer -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION

Re: Default constructor and uninitialized const

2005-02-22 Thread Peter Seiderer
> 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. >

Re: Default constructor and uninitialized const

2005-02-22 Thread Peter Seiderer
> Peter Seiderer wrote: > > ># /opt/gcc-3.4.2/bin/g++ -Wall -ansi default_constructor.cpp > >default_constructor.cpp:17: error: uninitialized const `a2' > > > > > :) :) what *intel* calls "-strict_ansi", of course. > > Paolo. &g

Re: Default constructor and uninitialized const

2005-02-22 Thread Peter Seiderer
> Peter Seiderer wrote: > > >Any hints to relevant documentation? > > > > > 8.5/9. > > Paolo. > Thank you for the quick answers. Peter -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail