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 250285 - c++: unable to resolve namespaces, using namespace not recognised
Summary: c++: unable to resolve namespaces, using namespace not recognised
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-07 13:09 UTC by ph03nix
Modified: 2015-09-28 16:45 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 ph03nix 2015-02-07 13:09:09 UTC
I stumbled upon some "Unable to resolve Identifier" issues while using the Boost libraries. I boiled the problem down to the following snippet:

#include <iostream>

namespace first {
    namespace second {
    };
    using namespace second;
    namespace second {
        namespace third {

            void third_print() {
                std::cout << "BAM \n";
            }
        }

    }

}

int main(int argc, char** argv) {


    first::third::third_print();          // Unable to resolve identifier third
    first::second::third::third_print();  // Works

    return 0;
}