[Bug 408891] New: cannot assign integer to reference in YCP
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=408891 Summary: cannot assign integer to reference in YCP Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: YaST2 AssignedTo: mvidner@novell.com ReportedBy: aschnell@novell.com QAContact: jsrain@novell.com Found By: Development It's not possible to assign a const integer to a integer reference in YCP: void bar(integer& i) { i = 42; // fails with compile error } But a workaround exists: void foo(integer& i) { integer j = 42; i = j; } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=408891
User mvidner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=408891#c1
Martin Vidner
participants (1)
-
bugzilla_noreply@novell.com