[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-cxx-dev
Subject:    Re:  CXX-DEV: Return type of main()
From:       Dennis Handly <dhandly () cup ! hp ! com>
Date:       2004-05-13 1:20:28
Message-ID: 200405130120.SAA19216 () hpcll183 ! cup ! hp ! com
[Download RAW message or body]

>From: "Kundu, Anjan Kumar" <anjan.kundu@hp.com>
>The accepted return types for main() seems to have changed recently.

No, ANSI C has always said the return type must be int, 5.1.2.2.1(1).
And you asked for pedantic mode.

>cc: HP aC++/ANSI C B3910B A.05.56 [Feb 19 2004]

IPF has a whole new C compiler.

>Any idea why this behaviour changed and from which version of the compiler?
>Is this effective on PA-RISC also?
Anjan

Because void is illegal, so aC++ has always given a future error.
For PA, currently with aCC -Ae only.

>From: "MAUCCI,CYRILLE (HP-France,ex1)" <cyrille.maucci@hp.com>
>On IPF, C compiler is actually not a standalone compiler but invoked by
>aC++.

More accurately, on IPF the C compiler is based on aC++.

>So I mean this must explain you have such a warning since the very beginning
>of aC++ on IPF
Cyrille

>From the very beginning of aC++, either PA or IPF, since it isn't legal
in C++ either, 3.6.1(2).
 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE cxx-dev
 _________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic