#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)
Change History (7)
Changed 2 years ago by barracuda156
comment:1 Changed 2 years ago by barracuda156
comment:2 follow-up: 3 Changed 2 years ago by jmroot (Joshua Root)
nullptr
is C++11, so setting compiler.cxx_standard
is the appropriate fix.
comment:3 Changed 2 years ago by barracuda156
Replying to jmroot:
nullptr
is C++11, so settingcompiler.cxx_standard
is the appropriate fix.
Thank you! Then I can make a PR.
comment:4 Changed 2 years ago by jmroot (Joshua Root)
Cc: | nerdling added |
---|
comment:5 Changed 2 years ago by barracuda156
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:6 Changed 2 years 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.
At least we need this:
Possibly also adding ancient {clang < 421}.