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.
#include <stdio.h> int foo(int& a) { // C++03 printf("+ %d\n", a); // red line (error) return 40; } int foo(int&& a) { // C++11 printf("- %d\n", a); // red line (error) return 40; } int main() { int x = 1; foo(1.0 + 2.0); foo(x); return 0; }
fixed, change set: https://hg.netbeans.org/cnd-main/rev/051e5343ea83
Integrated into 'main-silver', will be available in build *201508200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/051e5343ea83 User: Danila Sergeyev <danilasergeyev@netbeans.org> Log: fixed bug #254469 printf() and "call by reference"