New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'error: ISO C++1z does not allow dynamic exception specifications' when -std=c++17 specified through CXXFLAGS #41

Closed
anton-malakhov opened this Issue Nov 28, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@anton-malakhov

anton-malakhov commented Nov 28, 2017

Running make CXXFLAGS=-std=c++17, results in the following error:

g++ -c -MMD -DTBB_USE_DEBUG -DDO_ITT_NOTIFY -g -O0 -DUSE_PTHREAD -m64 -mrtm  -Wall -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -Wno-parentheses -Wno-non-virtual-dtor -fPIC  -D__TBBMALLOC_BUILD=1 -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc -I../../src/tbbmalloc ../../src/tbbmalloc/proxy.cpp

../../src/tbbmalloc/proxy.cpp:234:32: error: ISO C++1z does not allow dynamic exception specifications
 void * operator new(size_t sz) throw (std::bad_alloc) {
                                ^~~~~
../../src/tbbmalloc/proxy.cpp:242:33: error: ISO C++1z does not allow dynamic exception specifications
 void* operator new[](size_t sz) throw (std::bad_alloc) {
                                 ^~~~~

@anton-malakhov anton-malakhov changed the title from c++17 'does not allow dynamic exception specifications' in tbbmalloc's symbols table generation to c++17 'does not allow dynamic exception specifications' Nov 28, 2017

@anton-malakhov anton-malakhov changed the title from c++17 'does not allow dynamic exception specifications' to 'does not allow dynamic exception specifications' when -std=c++17 specified through CXXFLAGS Nov 28, 2017

@anton-malakhov anton-malakhov changed the title from 'does not allow dynamic exception specifications' when -std=c++17 specified through CXXFLAGS to 'error: ISO C++1z does not allow dynamic exception specifications' when -std=c++17 specified through CXXFLAGS Nov 28, 2017

@nik-ponomarev

This comment has been minimized.

nik-ponomarev commented May 24, 2018

Thanks for the issue raised. It is under investigation and we will try to fix it in one of nearest releases.

@nik-ponomarev

This comment has been minimized.

nik-ponomarev commented Jun 6, 2018

The fix will be available in the next release.

@tbbdev tbbdev closed this Nov 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment