Skip to content
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

2.1.1 fails to build with RTTI disabled #1165

Closed
dandee opened this issue Jan 26, 2018 · 2 comments
Closed

2.1.1 fails to build with RTTI disabled #1165

dandee opened this issue Jan 26, 2018 · 2 comments
Assignees
Labels

Comments

@dandee
Copy link

dandee commented Jan 26, 2018

I've updated Catch2 in my project to the version 2.1.1 and it stopped to build with the following error messages:

In file included from /path/project/test/src/main.cpp:32:
In file included from /path/project/test/include/project_ut.hpp:31:
/path/project/test/include/catch.hpp:5990:21: error: cannot use dynamic_cast with -fno-rtti
            assert( dynamic_cast<detail::BoundValueRefBase*>( m_ref.get() ) );
                    ^
/path/project/test/include/catch.hpp:6066:40: error: cannot use dynamic_cast with -fno-rtti
                    if( auto flagRef = dynamic_cast<detail::BoundFlagRefBase*>( m_ref.get() ) ) {
                                       ^
/path/project/test/include/catch.hpp:6073:33: error: cannot use dynamic_cast with -fno-rtti
                        assert( dynamic_cast<detail::BoundValueRefBase*>( m_ref.get() ) );
                                ^
3 errors generated.

Reverting back to 2.1.0 fixes the problem.

Release notes do not state anything about changed requirements for the compilation environment.

  • Catch version: 2.1.1
  • Operating System: macOS 10.13.3
  • Compiler+version: Apple LLVM version 9.0.0 (clang-900.0.39.2)
@horenmar
Copy link
Member

horenmar commented Feb 2, 2018

This is now fixed in Clara, so there should be a fixed point release next week.

@dandee
Copy link
Author

dandee commented Feb 12, 2018

Works perfect - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants