Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle Studio 12.5/12.6 constexpr assertion when compiling ICU 64.1

rwave2000Apr 10 2019 — edited May 6 2019

Oracle Studio 12.6 produces an Assertion in ../lnk/constexpr.cc when compiling ICU 64.1.

I have reduced it down to the following t.cpp:

static constexpr char16_t kFallbackPaddingString[] = u" ";

$ CC -V && CC -std=c++11 -c t.cpp

CC: Studio 12.6 Sun C++ 5.15 SunOS_i386 2017/05/30

>> Assertion:   (../lnk/constexpr.cc, line 875)

    while processing t.cpp at line 1.

Verified it doesn't fail with Oracle Studio 12.4 or gcc 4.8 .

Comments

Hello!

This problem has been fixed in the latest patch, so updating your compiler will help:

$ cat b.cc

    static constexpr char16_t kFallbackPaddingString[] = u" ";

$ CC -g  a.cc -std=c++11 -V

CC: Studio 12.6 Sun C++ 5.15 SunOS_i386 Patch 152716-03 2019/04/10

...

koval

Are those patches available somewhere for Solaris 10?

Maxim Kartashev-Oracle

Yes, all patches for Studio are made available both for Solaris 11 and 10. Patches for Solaris 10 can be downloaded through MOS (support.oracle.com). You'll need a support contract to do that.

User_07208

Is this patch available for solaris 11 ?

Alanc-Oracle

Updates for Solaris 11 are provided to customers with support contracts via the Studio IPS repository.

1 - 5

Post Details

Added on Apr 10 2019
5 comments
665 views