[llvm-bugs] [Bug 35842] Clang 6 fails to compile boost variant code in unnamed namespace

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 15 15:13:54 PST 2018


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

Louis Dionne <ldionne at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ldionne at apple.com
         Resolution|---                         |INVALID

--- Comment #2 from Louis Dionne <ldionne at apple.com> ---
The problem is that Boost.Variant incorrectly uses `boost::declval` in an
evaluated context. The compiler correctly diagnoses the invalid usage.
Basically, boost::declval is a never-defined function template. It is
instantiated in a TU with a type that has internal linkage (i.e. defined in an
anonymous namespace), and so the compiler can tell no definition of
boost::declval can ever exist.

-- 
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/20181115/b5f4e3a7/attachment-0001.html>


More information about the llvm-bugs mailing list