[llvm-bugs] [Bug 36869] New: gcc8 <string> compilation failure

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 22 13:04:35 PDT 2018


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

            Bug ID: 36869
           Summary: gcc8 <string> compilation failure
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mib.bugzilla at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

I see this fail in godbolt clang trunk, reduced from gcc8 <string> header
preprocessed file, compile in default mode which is c++14

Line 14, redefinition of __not_overloaded, previous def on line 10
namespace std
{
template < typename _Tp > _Tp __declval;
template < typename _Tp > auto declval ()->decltype (__declval < _Tp >);
template < typename ... >using __void_t = void;
template < typename, typename, typename = void >struct __not_overloaded;
template < typename _Tp, typename _Up > struct __not_overloaded <_Tp,
_Up,//line 10
__void_t < decltype (std::declval, std::declval < _Up >) >>
        {
        };
template < typename _Tp, typename _Up > struct __not_overloaded <_Tp, _Up
>//line 14
{
};
}

-- 
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/20180322/c97ead74/attachment.html>


More information about the llvm-bugs mailing list