Bug 147493 - class browser confused on operator new when initializing structure
Summary: class browser confused on operator new when initializing structure
Status: RESOLVED DUPLICATE of bug 74347
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.4.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 13:51 UTC by Arturs Zoldners
Modified: 2007-07-03 14:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***