[llvm-bugs] [Bug 29033] non-constexpr recursive variable templates are instanciated wrongly

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 9 10:10:49 PST 2021


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

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

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Not a bug: implicit instantiations of a variable template have unordered
initialization. There is no guarantee that fibo_v<3> and fibo_v<2> are
initialized before fibo_v<4>.

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

-- 
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/20210309/91904a52/attachment.html>


More information about the llvm-bugs mailing list