468,768 Members | 1,715 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,768 developers. It's quick & easy.

Compatibility of checks done by 'Forte Developer 7' & 'Sun studio 9' C++ compilers

Following is one of the post which got un-answered in
comp.unix.solaris group earlier. I am re-posting it again hoping that
anybody who has moved from 'Sun Forte-7' to 'Sun Studio 9' should
certainly be able to help here. Thanks!

-----------------------------------------------------
I would like to know the compatibility of the checks done by the C++
compilers:
'Forte Developer 7' & 'Sun studio 9' C++ compilers.

When we moved from Sun WorkShop 6 to 'Forte Developer 7' C++ compiler,
it was required to do few modifications in the existing code for e.g.
having the same exception specification as the base class version, in
derived class version of the same function.

class base
{
public:
void test() throw(std::bad_alloc) ;

// Other parts of 'base'
};

class derived: public base
{
public:
/* Following compiled successfully with 'Sun WorkShop 6', but not
with 'Forte Developer 7' */
// void test();

/* It was required to do the following */
void test() throw(std::bad_alloc) ;

// Other parts of 'derived'
};
I fully agree that, we should write code which is 100% C++ standard
compatible to avoid any corrections based on compiler versions. But,
it may not be practically to cross-check this in a LSSD projects.

Hence, I would like to know the above information!
----------------------------------------------------
Jul 23 '05 #1
1 1347
qazmlp wrote:
-----------------------------------------------------
I would like to know the compatibility of the checks done by the C++
compilers:
'Forte Developer 7' & 'Sun studio 9' C++ compilers.


Why don't you get an eval license of studio 9 and test yourself?

From what I know there are a lot of good reasons to switch to
Studio 9. But I cannot say into what issues you might run.

Tom

--
__________________________________________________ ______________________
Dipl.-Ing. Thomas Maier-Komor http://www.rcs.ei.tum.de
Institute for Real-Time Computer Systems (RCS) fon +49-89-289-23578
Technische Universitaet Muenchen, D-80290 Muenchen fax +49-89-289-23555
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Sad | last post: by
20 posts views Thread by ritchie | last post: by
13 posts views Thread by Derek | last post: by
15 posts views Thread by mlimber | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.