Last active
October 24, 2024 07:28
-
-
Save atsushieno/e15dbb0c2d1711c642cbc4955599afe5 to your computer and use it in GitHub Desktop.
clang++ -std=c++2b and -std=c++23 fail, while clang++ w/o them and g++ pass. (both x86_64 trunk on Compiler Explorer)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <cassert> | |
struct Timer { | |
void clear() { pimpl.reset(); } | |
private: | |
struct Pimpl; | |
std::unique_ptr<Pimpl> pimpl; | |
}; | |
struct Timer::Pimpl { | |
}; | |
int main() { | |
Timer timer; | |
timer.clear(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment