Bug 147493

Summary: class browser confused on operator new when initializing structure
Product: [Applications] kdevelop Reporter: Arturs Zoldners <kdevelop>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 3.4.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Arturs Zoldners 2007-07-03 13:51:02 UTC
Version:           3.4.1 (using KDE KDE 3.5.7)
Installed from:    Fedora RPMs
Compiler:          gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) 
OS:                Linux

The following code is correct under gcc (perhaps gcc-ism),
but confuses kdevelop class browser:

typedef struct
{
	int foo;
	int bar;
} baz;

namespace N
{
	class C
	{
		int fun(void)
		{
			new baz((baz) {1,2}); // <- !
		}
	};
}

as a result, class C disappears from namespace N in class browser.
Comment 1 Andreas Pakulat 2007-07-03 14:34:54 UTC
The problem is the typedef and we already have a Bugreport for that.

*** This bug has been marked as a duplicate of 74347 ***