Is it compile bug? Accessing inactive member of union in constexpr function causes compile error in compile time evaluation
While I was playing with constexpr function, I faced the following issue.
Retrieving from gcc/clang a value known at compilation time
Consider the following compilatiom time constant VALUE
defined by
Why does GCC forward the arguments of this vector constructor to the constructor of the contained type while Clang doesn’t?
Consider the following dummy type:
C++ compilers have issue with template arguments in macro expansion
I tested against g++
and clang++
and have derived a MWE after experiencing this earlier today while writing some unit tests:
Why do I gert this clang warning reguarding std::get_time?
In the following code, clang flags the third line with In template: reference to non-static member function must be called. Yet the code compiles (g++) and runs successfully.
GCC vs Clang: templated conversional operator in hierarchy of inheritance
Consider the next code: