|
Bugzilla – Full Text Bug Listing |
| Summary: | cannot assign integer to reference in YCP | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | Arvin Schnell <aschnell> |
| Component: | YaST2 | Assignee: | Martin Vidner <mvidner> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Minor | ||
| Priority: | P5 - None | ||
| Version: | Factory | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Development | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
Hm, this bug is not as rare as I thought. *** This bug has been marked as a duplicate of bug 205663 *** |
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; }