https://bugs.llvm.org/show_bug.cgi?id=43307

            Bug ID: 43307
           Summary: std::ceil2 error with libstdc++ and -std=gnu++2a
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Created attachment 22493
  --> https://bugs.llvm.org/attachment.cgi?id=22493&action=edit
test.cc

gcc successed with:
$ g++ -std=gnu++2a --compile -o /dev/null test.cc

clang output:
$ clang++ -std=gnu++2a --compile -o /dev/null test.cc 
test.cc:14:5: error: static_assert failed due to requirement
'!ceil2_valid<4294967295, void>()'
    static_assert(!ceil2_valid<T(max<T>)>());
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~
test.cc:18:15: note: in instantiation of function template specialization
'test<unsigned int>' requested here
static_assert(test<unsigned>(0));
              ^
1 error generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to