https://bugs.kde.org/show_bug.cgi?id=370928
Bug ID: 370928 Summary: Kdevelop parser issues with with typedefs not recognized. Product: kdevelop Version: 5.0.1 Platform: Fedora RPMs OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Language Support: CPP (old) Assignee: kdevelop-bugs-n...@kde.org Reporter: tedfed...@gmail.com I have a CPP file with some typedef's and variables declarations. These do not appear to get recognized by the parser unless I have the declaration right before the usage in the .cpp file. Reproducible: Always Actual Results: Parser flags valid code as error. Expected Results: Parser should not flag these as errors. Here is an example: typedef map<int, afdx_hdl_t> TX_PORT_MAP_T; typedef struct VL_ENTRY_T { afdx_hdl_t VL_Hdl; TX_PORT_MAP_T portMap; }VL_ENTRY; typedef map<int, VL_ENTRY> TX_VL_MAP_T; TX_VL_MAP_T m_TxVlMap; ..... TX_VL_MAP_T::iterator vlMapIter = m_TxVlMap.find(txVLInfo.VL_ID); I show these errors with the parser unless the above declarations appear immediately above the usage. Problem in Semantic analysis 'TX_VL_MAP_T' (aka 'int') is not a class, namespace, or enumeration m_TxVlMap Problem in Semantic analysis Member reference base type 'TX_VL_MAP_T' (aka 'int') is not a structure or union This code compiles with no warnings/errors. -- You are receiving this mail because: You are watching all bug changes.