Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#66235 closed defect (fixed)

xercesc3 @3.2.4 fails to build with gcc-4.2: error: 'nullptr' was not declared in this scope

Reported by: barracuda156 Owned by: scantor (Scott Cantor)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: powerpc, leopard, snowleopard Cc: nerdling (Jeremy Lavergne)
Port: xercesc3

Description

xercesc/validators/common/DFAContentModel.cpp: In member function 'xercesc_3_2::CMNode* xercesc_3_2::DFAContentModel::buildSyntaxTree(xercesc_3_2::ContentSpecNode*, unsigned int&)':
xercesc/validators/common/DFAContentModel.cpp:1522: error: 'nullptr' was not declared in this scope
make[3]: *** [xercesc/validators/common/DFAContentModel.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

Attachments (1)

main.log (292.2 KB) - added by barracuda156 16 months ago.

Download all attachments as: .zip

Change History (7)

Changed 16 months ago by barracuda156

Attachment: main.log added

comment:1 Changed 16 months ago by barracuda156

At least we need this:

compiler.blacklist-append *gcc-4.*

Possibly also adding ancient {clang < 421}.

comment:2 Changed 16 months ago by jmroot (Joshua Root)

nullptr is C++11, so setting compiler.cxx_standard is the appropriate fix.

comment:3 in reply to:  2 Changed 16 months ago by barracuda156

Replying to jmroot:

nullptr is C++11, so setting compiler.cxx_standard is the appropriate fix.

Thank you! Then I can make a PR.

comment:4 Changed 16 months ago by jmroot (Joshua Root)

Cc: nerdling added

comment:5 Changed 16 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

comment:6 Changed 16 months ago by scantor (Scott Cantor)

For the record, this was an inadvertent addition in a patch, and the decision was made to just accept that C++ 11 should be the baseline going forward, so this is the proper fix.

Note: See TracTickets for help on using tickets.