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
While updating doctest, CHECK_MESSAGE broke and it causes a compilation failure. It looks like it was broke in c494843, it works in 2.1.0 while in 2.2.0 it fails with an error:
foo2.cpp:8:3: error: use of undeclared identifier 'DT_CHECK'
CHECK_MESSAGE(x == 0, "Boo boo");
^
./doctest/doctest.h:2476:23: note: expanded from macro 'CHECK_MESSAGE'
#define CHECK_MESSAGE DOCTEST_CHECK_MESSAGE
^
./doctest/doctest.h:2022:93: note: expanded from macro 'DOCTEST_CHECK_MESSAGE'
#define DOCTEST_CHECK_MESSAGE(cond, msg) do { DOCTEST_INFO(msg); DOCTEST_ASSERT_IMPLEMENT_2(DT_CHECK, cond); } while((void)0, 0)
^
1 error generated.
I get the same error with 2.3.4.
Steps to reproduce
#defineDOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#defineDOCTEST_CONFIG_SUPER_FAST_ASSERTS
#include<doctest/doctest.h>TEST_CASE("x")
{
int x = 2;
CHECK_MESSAGE(x == 0, "Boo boo");
}
Compile with clang++ without any special flags.
doctest version: v2.3.4
Operating System: Gentoo Linux amd64
Compiler+version: clang 8.0.1 (both with libc++ and gcc's libstdc++)
The text was updated successfully, but these errors were encountered:
u3shit
added a commit
to u3shit/libshit
that referenced
this issue
Aug 24, 2019
I can confirm that my sample is now working with the dev branch 👍. I can't test it with my real code right now because of the two other bugs I've opened.
Description
While updating doctest, CHECK_MESSAGE broke and it causes a compilation failure. It looks like it was broke in c494843, it works in 2.1.0 while in 2.2.0 it fails with an error:
I get the same error with 2.3.4.
Steps to reproduce
Compile with
clang++
without any special flags.The text was updated successfully, but these errors were encountered: