Opened 5 years ago
Closed 5 years ago
#60302 closed defect (fixed)
nds2-client @0.16.2: error: cannot omit braces around initialization of subobject when using direct list-initialization
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | emaros |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | lion | Cc: | |
Port: | nds2-client |
Description
nds2-client fails to build on Lion only:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_nds2-client/nds2-client/work/nds2-client-0.16.2/src/common/common/status_codes.hh:16:50: error: cannot omit braces around initialization of subobject when using direct list-initialization :info:build const auto STATUS_DAQD_OK = status_code{ '0', '0', '0', '0' }; :info:build ^~~~~~~~~~~~~~~~~~ :info:build { } :info:build
It builds fine on Snow Leopard (using gcc) and it builds fine on Mountain Lion and later (using clang). My guess is that later versions of clang have relaxed whatever this restriction is.
Possible solutions might include adding the braces as mentioned in the error message or blacklisting older versions of clang.
Attachments (1)
Change History (3)
Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | main.log.bz2 added |
---|
comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Ed responded by email:
In that case, I will add
to the Portfile and then MacPorts should know which compilers to exclude.