Skip to main content

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

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<typename T, typename S = SS<T> > class Cont> // "Type T could not be resolved." on second occurence of T.
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,

Back to the top