Community
Participate
Working Groups
Case 1: test.h ------ class A {}; void f(A a) {} test.cc ------- struct A; void test(A a) { f(a); // Problem on f } Case 2: test.h ------ struct A {}; void f(A a) {} test.cc ------- class A; void test(A a) { f(a); // Problem on f } GCC compiles both examples without errors.
Fixed in cdt_8_0 and master > 20110920.
*** cdt git genie on behalf of Sergey Prigogin *** Bug 358282 - Name resolution problem with mismatched 'class' and 'struct'. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ec3395e78d6f54c1167dc8adb8ace08f119a0fe2
*** cdt git genie on behalf of Sergey Prigogin *** Bug 358282 - Name resolution problem with mismatched 'class' and 'struct'. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=745cbac9a9b63a00f1104ad18c5ee5368272ac06