This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 145822 - unresolved members of typedefed class
Summary: unresolved members of typedefed class
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 15:59 UTC by Jan Lahoda
Modified: 2008-09-02 05:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2008-09-01 15:59:58 UTC
Build from Hudson:
Product Version: NetBeans IDE Dev (Build 20080901093718)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.21.4-eeepc running on i386; UTF-8; en_US (nb)
Userdir: /home/user/userdir.cnd

Into a new empty C++ file paste this:
------------------------------
typedef struct A {
    const char *aa;
};

A a[1];
------------------------------

The "aa" is marked with error "Unable to resolve identifier aa", which does not seem correct.

$ gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

seem to compile this code without complaints.

P4 as the code is really strange, and converting it into a more reasonable form (deleting "typedef"
or moving/copying the "A" to the correct place for typedef) makes the error to disappear.
Comment 1 Vladimir Voskresensky 2008-09-01 18:03:51 UTC
fixed:
http://hg.netbeans.org/main?cmd=changeset;node=c5f85b01107c
Comment 2 Quality Engineering 2008-09-02 05:41:24 UTC
Integrated into 'main-golden', will be available in build *200809020201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c5f85b01107c
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed IZ#145822: unresolved members of typedefed class