This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 242085 - inaccuracy tests: unresolved identifier in "template <typename T> int foo(int (T::*)() const)" case
Summary: inaccuracy tests: unresolved identifier in "template <typename T> int foo(int...
Status: RESOLVED DUPLICATE of bug 243520
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-19 10:03 UTC by soldatov
Modified: 2014-08-13 14:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-02-19 10:03:39 UTC
file: llvm/tools/clang/lib/AST/Comment.cpp

simple test case:
class A {
public:

    int m() const {
    }
};

template <typename T>
int foo(int (T::*)() const) { // unexpected token int
    return 1; // unexpected token return
} // unexpected token }

int main() {
    A a;
    foo<A>(&A::m);
    return 0;
}
Comment 1 petrk 2014-08-13 14:07:40 UTC

*** This bug has been marked as a duplicate of bug 243520 ***