Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Ctor name in a ctor call expression gets resolved to CPPClassType instead of CPPConstructor

I've noticed that a constructor name in a constructor call _expression_ gets resolved to CPPClassType instead of CPPConstructor. In the following code select "A" in "A(1)". Notice that "A" gets highlighted in the first and the fourth lines, but not in the second line (see

struct A {
  A(int x);

A a = A(1);

This may seem like a minor annoyance, but it causes bug 393068.
Is it the expected behavior? If so, how to get the constructor being called?

Back to the top