• Advertisement

This topic is 3555 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What's the most featured most compliant with the standard C/C++ compiler (not ide)? GCC Intel OpenWatcom VC++ Borland C++ ???

Share this post


Link to post
Share on other sites
Advertisement
Probably Comeau's compiler right now.

Share this post


Link to post
Share on other sites
SiCrane is probably right, since to my knowledge it's the only one that implements the `export' keyword (allow separate declarations and definitions for templates).

I use gcc and I am not aware of any other departures from the standard. I think recent versions of VC++ have decent compliance too.

Share this post


Link to post
Share on other sites
For gcc, the only other departure from the standard that I know of in recent versions (4.2+) that is not considered a bug is an obscure case involving destruction order of objects with static storage duration on platforms that don't support __cxa_atexit() involving dynamic libraries.

Share this post


Link to post
Share on other sites
Quote:
Original post by alvaro
SiCrane is probably right, since to my knowledge it's the only one that implements the `export' keyword (allow separate declarations and definitions for templates).

I use gcc and I am not aware of any other departures from the standard. I think recent versions of VC++ have decent compliance too.


I agree that Comeau is the only fully compliant, but don't all EDG compilers (including Intel) support 'export'?

Share this post


Link to post
Share on other sites
Quote:
Original post by rozz666
I agree that Comeau is the only fully compliant, but don't all EDG compilers (including Intel) support 'export'?


I don't believe so. I've heard that you can use the EDG front end to create a compiler that doesn't support export. At least one academic compiler I've read about is done that way, but I haven't used it myself. The only EDG front end compiler I've personally used is the Comeau compiler, so I can't say for certain.

Share this post


Link to post
Share on other sites
Quote:
Original post by alvaro
SiCrane is probably right, since to my knowledge it's the only one that implements the `export' keyword (allow separate declarations and definitions for templates).


Intel also supports export.

Share this post


Link to post
Share on other sites
Visual C++ still slacks in a few areas (such as throw specifications), but it's pretty close.

Share this post


Link to post
Share on other sites
Make sure whatever compiler you use, you disable extensions. This is done in gcc with the -pedantic flag.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement