[llvm-bugs] [Bug 16895] Inline definition of a conversion operator as a friend gives a segmentation fault

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 26 10:28:05 PDT 2017


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

Serge Pavlov <sepavloff at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |sepavloff at gmail.com
             Status|NEW                         |RESOLVED

--- Comment #1 from Serge Pavlov <sepavloff at gmail.com> ---
Current version of clang (r309136) does not crash:

16895.cpp:1:19: error: must use a qualified name when declaring a conversion
operator as a friend
struct S { friend operator int(){} };
                  ^
1 error generated.

-- 
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/20170726/55e8130b/attachment-0001.html>


More information about the llvm-bugs mailing list