[llvm-bugs] [Bug 32186] [modules] error: constant expression not a constant expression

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 9 14:30:52 PST 2017


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
                 CC|                            |richard-llvm at metafoo.co.uk
             Status|NEW                         |RESOLVED

--- Comment #7 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This is a symptom of the bug that we're calling DeclMustBeEmitted during
deserialization, and hence is a duplicate of PR31863.

The problem is that the call to DeclMustBeEmitted triggers evaluation of the
initializer of the variable before we've loaded the definition of
max<int>::val.

*** This bug has been marked as a duplicate of bug 31863 ***

-- 
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/20170309/032660b2/attachment.html>


More information about the llvm-bugs mailing list