This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78615] error: cannot decrement a pointer to incomplete type


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78615

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I don't think this is valid code and here is why:
struct QListNode is incomplete.
You use an instantiation of QList<int> via class B which means all methods of
QList<int> are instantiated.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]