-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
| Bugzilla Link | 10804 |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @jryans |
Extended Description
getCalleeDecl() returns NULL in a function call to a method pointer, if the method pointer is passed as a template parameter. For example:
template<void (UnFoo::*methptr)()>
class MCaller {
public:
static void call_method_ptr(UnFoo *f) {
// FIXME: Possible Clang bug:
// getCalleeDecl() returns NULL in the following case:
(f->*methptr)();
}
};
void call_method_ptr_inst(UnFoo* f) {
MCaller<&UnFoo::foo>::call_method_ptr(f);
}
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"