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.
C++ code: #include <wchar.h> int main() { static_cast<signed char> (1) + 1; static_cast<long long> (1) + 1; static_cast<wchar_t> (1) + 1; } Scenario: - Select any "static_cast<...> (1) + 1" line - Press Alt+Shift+V (Refactor|Introduce Variable... menu item) ==> "Invalid Selection" window appears P.S. In "auto a = static_cast<signed char> (1) + 1;" case IDE thinks 'a' has '<null>' type.
Code model cannot resolve type of a selection.
Fixed in http://hg.netbeans.org/cnd-main/rev/259c9c675804
Integrated into 'main-silver', will be available in build *201607130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/259c9c675804 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #261517 - Bad implicit type conversion