Add flag for C++11 support on HP-UX aCC compiler

Description

Initial reported on the `icu-support` mailing list.

As of version 59, ICU4C now uses and requires C++11 language features and libraries.

According to http://en.cppreference.com/w/cpp/compiler_support , the *aCC* compiler doesn't fully support C++11 yet.

However, it looks like it ''does'' support the new character types (`char16 ([ICU-unknown])_t` and `char32 ()_t`), but you don't get C++11 support by ''default'' though.

According to the manual ( https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c04221956) for the aCC compiler, you need to use a command line switch to enable the C++11 support.

From the manual:

  • "`std=c+11`"

  • This option turns on support for several core language features introduced by the ISO C++11 language standard.


We should likely add this to the config for hp-ux.

Activity

Show:
TracBot
July 1, 2018, 12:03 AM
Trac Comment 1 by —2018-02-28T18:44:23.894Z

From Jason on the `icu-support` mailing list, adding the "`std=c+11`" option was *not* sufficient to get ICU4C to compile on HP-UX with the aCC compiler.

However, they did not list what other issues they ran into after adding the option.

I replied back asking them for further details, either on the mailing list or directly here on the ticket.

TracBot
July 1, 2018, 12:03 AM
Trac Comment 3 by —2018-02-28T18:53:02.526Z

Note: I do not have access to either HP-UX or the HP aCC compiler.

So I am parking this ticket on myself for now, but ideally this ticket should move to somebody else who has access to test and verify any changes.

TracBot
July 1, 2018, 12:03 AM
Trac Comment 4 by —2018-03-14T21:04:19.543Z

Latest reply from Jason is that the additional issue they ran into even with the "std=c+11" option is the use of inheriting constructors:

So it seems that the aCC compiler does not have sufficient support for C++11, even with the special flag enabled.

Jeff Genovy
May 22, 2019, 5:51 PM

Note: It is not clear that there is anything to do for this ticket, since adding the flag isn't sufficient.
(ICU doesn't have a status "BLOCKED" for tickets though.)

Assignee

Unassigned

Reporter

Jeff Genovy

Components

Labels

Reviewer

None

Priority

assess

Time Needed

None

Fix versions

Configure