#59907 closed defect (fixed)
upc @5.2.0.1: error: invalid suffix on literal; C++11 requires a space between literal and identifier
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | ||
Port: | upc |
Description
upc doesn't build in C++11 mode:
(This log is from 10.6, on which we use clang++ 9 which defaults to C++11 mode. In time, newer clang versions will appear in Xcode, at which point this problem will affect newer systems too.)
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_upc/upc/work/upc-5.2.0.1/gcc/config/darwin.h:538:29: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] fprintf (FILE, "\t.space "HOST_WIDE_INT_PRINT_UNSIGNED"\n", SIZE) ^
You could fix this issue, which is easy, or if there are other harder-to-fix issues as well then you could add a flag to specify that an earlier C++ standard should be used.
Change History (2)
comment:1 Changed 5 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:2 Changed 4 years ago by tenomoto (Takeshi Enomoto)
In 5bbf180d3bf15ccceae780a2e414ab6d0505c6be/macports-ports (dar, master, py38-reproject, revert-6945-rust-1.43.0, wireshark):
Note: See
TracTickets for help on using
tickets.
In 5bbf180d3bf15ccceae780a2e414ab6d0505c6be/macports-ports (master):