Skip to content

@​encode asserts on structures ending in unsized array #4011

@llvmbot

Description

@llvmbot
Bugzilla Link 3639
Resolution FIXED
Resolved on Mar 12, 2010 00:59
Version unspecified
OS MacOS X
Attachments test case for bug
Reporter LLVM Bugzilla Contributor

Extended Description

Clang currently asserts when handling @​encode on a structure that ends in an unsized array:
Assertion failed: (0 && "Unhandled array type!"), function getObjCEncodingForTypeImpl, file ASTContext.cpp, line 2198.

With a stack trace of:
clang::ASTContext::getObjCEncodingForTypeImpl at ASTContext.cpp:2198
clang::ASTContext::getObjCEncodingForTypeImpl at ASTContext.cpp:2233
clang::ASTContext::getObjCEncodingForType at ASTContext.cpp:2029

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions