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

David Blaikie <dblai...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dblai...@gmail.com
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #2 from David Blaikie <dblai...@gmail.com> ---
Yep, undefined behavior:

$ clang++ -fsanitize=undefined test.cpp && ./a.out
test.cpp:8:12: runtime error: reference binding to null pointer of type
'AnyClassOrType'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior test.cpp:8:12 in 
nullptr == Ptr true
nullptr == RefPtr true
RefPtr == (nil)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to