You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current master does not compile on Solaris due to a name conflict with a #define in the <sys/regset.h> header.
I was able to reproduce this bug in an isolated directory containing a main.cpp (below) and the single_include/catch2/catch.hpp header from commit e2d863b. This is the simple main.cpp file that doesn't compile:
#include"catch.hpp"intmain() {}
Compilation command: g++ -std=c++11 -I. main.cpp
This bug originated in commit 004228e where the template parameter name "SS" was used. The conflicting define in the Solaris <sys/regset.h> header is this:
#defineSS18/* only stored on a privilege transition */
Naturally, g++ errors out when it encounters a numeric constant instead of a template parameter name:
Current master does not compile on Solaris due to a name conflict with a #define in the <sys/regset.h> header.
I was able to reproduce this bug in an isolated directory containing a main.cpp (below) and the single_include/catch2/catch.hpp header from commit e2d863b. This is the simple main.cpp file that doesn't compile:
Compilation command: g++ -std=c++11 -I. main.cpp
This bug originated in commit 004228e where the template parameter name "SS" was used. The conflicting define in the Solaris <sys/regset.h> header is this:
Naturally, g++ errors out when it encounters a numeric constant instead of a template parameter name:
Platform Info:
OS: Solaris 11.4.0.15.0 i386
Compiler: GCC 7.3.0
Catch Version: e2d863b
A PR will be created to fix this issue.
The text was updated successfully, but these errors were encountered: