[llvm-bugs] [Bug 21860] [fuzz] Assertion `hasInClassInitializer() && InitStorage.getPointer() == nullptr && "bit width, initializer or captured type already set"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 21 16:30:35 PDT 2016


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

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |FIXED

--- Comment #3 from Reid Kleckner <rnk at google.com> ---
We now reject:

C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: error: default member
initializer for 'np1' uses itself
template <typename> struct e {
                           ^
C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: note: in instantiation
of default member initializer 'e<int>::np1' requested here
C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: note: in instantiation
of default member initializer 'e<int>::np1' requested here
C:/Users/rnk/Downloads/funs-without-prototype.cpp:3:13: note: implicit default
constructor for 'e<int>' first required here
  int np1 = e();
            ^
C:/Users/rnk/Downloads/funs-without-prototype.cpp:5:12: note: implicit default
constructor for 'e<int>' first required here
e<int> a = e<int>();
           ^

-- 
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/20161021/c7ca1260/attachment-0001.html>


More information about the llvm-bugs mailing list