[LLVMbugs] [Bug 15526] Crash of the compiler on an Objective-C file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 6 11:10:49 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15526

Fariborz Jahanian <fjahanian at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |fjahanian at apple.com
         Resolution|---                         |WORKSFORME

--- Comment #3 from Fariborz Jahanian <fjahanian at apple.com> ---
This was recently fixed in in trunk.

% $CLANG -c test.m -Wno-objc-root-class
test.m:8:10: error: address of bit-field requested
  return &_name;
         ^~~~~~
1 error generated.

> Reduced test:
> 
> @interface CPIntVarI {
>   int _name:31;
> }
> @end
> 
> @implementation CPIntVarI
> - (int*)foo {
>   return &_name;
> }
> @end
> 
> Taking the address of a bitfield is obviously invalid, but clang shouldn't
> crash on it.

-- 
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/20130606/05255537/attachment.html>


More information about the llvm-bugs mailing list