Skip to content

CheckAddressOfOperand does not handle references to class vars #3547

@nunoplopes

Description

@nunoplopes
Bugzilla Link 3175
Resolution FIXED
Resolved on Feb 22, 2010 12:51
Version unspecified
OS All
CC @DougGregor

Extended Description

The following code crashes 'clang -fsyntax-only -x c++':

void bar(int*);

class c {
int var;
void foo() { bar(&var); }
};

with:
clang: SemaExpr.cpp:2772: clang::QualType clang::Sema::CheckAddressOfOperand(clang::Expr*, clang::SourceLocation): Assertion `0 && "Unknown/unexpected decl type"' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++compile-failUse [accepts-invalid] and [rejects-valid] instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions