On Tue, Feb 22, 2005 at 04:32:33PM +0100, Peter Seiderer wrote:
> Thanks, reproducable with intel:
>
> # icc -strict_ansi default_constructor.cpp
> default_constructor.cpp(17): warning #854: const variable "a2" requires an
> initializer -- class "A2" has no explicitly declared default constructor
> 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
Peter Seiderer wrote:
Any hints to relevant documentation?
8.5/9.
Paolo.
> 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.
>
Thanks, reproducable with intel:
# icc -strict_ansi default_cons
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.
> 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
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.
Hello,
the following short C++ programm does not compile with gcc (but with intel
and windows):
/*
* Gives error when compiled with gcc (eg. 3.4.2, gcc-4.0-20050123).
* No error with intel (8.1) or windows compiler.
*/
class A1 {
public:
A1() {}
};
static const A1 a1;
class A2 {
};
stat