[Bug c++/69905] Digit separators break literal operators

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 17 09:27:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69905

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The testcase in comment 2 (the only one in the bug that's actually correct!)
works now, fixed by r258157 for Bug 84671.

The problem in comment 7 still exists, the corrected testcase is:

#include <chrono>
int main() {
    using namespace std::chrono_literals;
    auto time = operator""s(0x8000'0000'0000'0000'0000'0000ULL);
    static_assert(std::is_same<decltype(time)::rep, unsigned long long>(), "");
}


More information about the Gcc-bugs mailing list