Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Yet Another "Semantic Error"

You can disable specific problems in C/C++ General, Code Analysis. But if you could report the issue in bugzilla that would be great.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT

On 09/09/2011 11:31 AM, Artem M. Pelenitsyn wrote:
Hi there! Continuing discussion about strange Semantic Errors exposed by Indigo on perfectly valid C++-code. Following lines yield semantic error:

template<typename T> struct SS {};

template<
template<typename T, typename S = SS<T> > class Cont> // "Type T could not be resolved." on second occurence of T.
Cont<int>
f() {}

int main() {
    return 0;
}


With this issue you can't quitely compile C++ template code, where you e.g. create templates which get standard containers as their template arguments (cf. Vandevoorde, Josuttis, C++ Templates: The Complete Guide, 5.4).

I saw discussions about alike issues on the web but didn't find clear manual, what to do with "C++ Indexer" to get it quiet in such cases, but not to turn it off completely. Is there a way to do it?

Best regards,
  Artem

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top