Tocmai erori de acest gen au facut pe unii sa sara in sus de cur cum ca
gcc-ul de la redhat este buggy cand de fapt el doar respecta
standardele.

Cioby



On Lu, 2002-01-21 at 21:30, Ionut Spirlea wrote:
> 
> salut,
> la mine mere (2.95.3 (default in slack8))
> root@cat:~# cat p.cpp
> 
> class test {
> public:
>         enum tip {unu, doi, not, and};
>         tip x;
> };
> 
> void main()
> {
>         test obj;
>         obj.x = test::not;
> }
> 
> root@cat:~# gcc p.cpp -o p
> root@cat:~# ./p
> root@cat:~# gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
> 
> 
> 
> 
> On Mon, 21 Jan 2002, Adrian Mihalcea wrote:
> 
> > Salutare lista.
> >
> > Am o întrebare scurtă. Programul următor ar trebui să poată fi compilat, sau
> > nu? Eu folosesc gcc-2.96 care a venit cu RedHad 7.1 şi nu-mi merge. Am
> > încercat şi un compilator 3.0 care vine cu un RedHat 7.2 şi tot nu compilează.
> > Totuşi, cu un compilator gcc-2.95 de pe un sistem SuSe şi cu orice compilator
> > de pe Windows, programul trece fără probleme.
> >
> > Iată programul test.cpp
> >
> > class test {
> >    public:
> >       enum tip {unu, doi, not, and};
> >       tip x;
> > };
> > void main(void){
> >     test obj;
> >     obj.x=test::not;
> > }
> >
> >
> > În caz că programul NU ar fi trebuit să meargă pe celelalte compilatoare,
> > poate daţi şi o scurtă explicaţie.
> >
> > Mulţumesc.
> > Adi
> > ---
> > Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> > unsubscribe from this list.
> >
> >
> 
> 
> -----
> Ionut Spirlea,
> http://sgi.rdscv.ro/~ionuts/
> 
> 
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
> unsubscribe from this list.



---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.

Raspunde prin e-mail lui