CC 5.9 and ../lnk/bind.cc Problem

Hi,

we have migrated from SunStudio11 to SunStudio12 in which CC compiler has upgraded to 5.9. After recompiling source codes with new compiler, we got the following error:

>> Assertion: (../lnk/bind.cc, line 268)

while processing .......

We have encountered this problem reported in the past. But there exists a patch for this problem for CC 5.8 compiler.PATCH_ID: 121017-08 which is last updated on Feb 26, 2007.

We assume that this patch is already included in SunStudio12 release.How can we overcome this problem? Is this a bug that still exits in CC 5.9? If so, shall we download patch for CC 5.8 on our CC 5.9? We are blocked with this problem.

Thanx in advance

PS:

CC: Sun C++ 5.9 SunOS_sparcSun 2007/05/03

OS: Solaris 10

Message was edited by:

sunriseloverr

Message was edited by:

sunriseloverr

Message was edited by:

sunriseloverr

[941 byte] By [sunriseloverra] at [2007-11-27 10:58:06]
# 1

Most compiler assertions (including this one) can have different causes. The assertion is a failed consistency check, and the compiler cannot proceed. A particular assertion can be "fixed", and yet show up again when the compiler sees different source code. (I hate it when that happens.)

You might be running into bug 6549618, present in the initial release of Studio 12. It has been fixed, and the fix will appear in the first released patch. The patch is undergoing testing now, and should be available in a few weeks.

Here is a test case for that bug:

class Comparator {

template< typename Value , int Count = sizeof ( Value) > class Tree {} ;

template< typename KeyPair > class Map {

typedef Tree < KeyPair * > a;

};

};

The problem was caused by sizeof in the non-type template default parameter value.

You cannot patch Studio 12 with a patch for Studio 11.

clamage45a at 2007-7-29 12:13:33 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Thank you so so much...

i was actually looking for the so called "patch_01". Is there an announced official release date for this patch?

sunriseloverra at 2007-7-29 12:13:33 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

That's the patch I was talking about. Testing is in progress now.

clamage45a at 2007-7-29 12:13:33 > top of Java-index,Development Tools,Solaris and Linux Development Tools...