[llvm-bugs] [Bug 43307] New: std::ceil2 error with libstdc++ and -std=gnu++2a

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 13 07:44:35 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: yichen.yan at inf.ethz.ch
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190913/60fff4c5/attachment.html>


More information about the llvm-bugs mailing list