Changes between Version 3 and Version 6 of Ticket #203
- Timestamp:
- Sep 8, 2020, 10:28:48 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #203 – Description
v3 v6 62 62 63 63 #elif SHOW_ERROR == 3 64 // 2 alternatives:64 // GCC: initializer element is not constant 65 65 wrap_c(int) error_obj @= { count_obj }; 66 66 67 67 #elif SHOW_ERROR == 4 68 void local(void) { 69 // 2 alternatives: 70 wrap_c(char) error_obj @= { inner_obj }; 71 } 72 73 #elif SHOW_ERROR == 5 74 // 2 alternatives: 75 child_vtable(int) child_vtable_instance = { 76 &base_vtable_instance 77 }; 78 79 #elif SHOW_ERROR == 6 80 // 2 alternatives: 81 child_vtable(char) child_vtable_instance @= { 82 &base_vtable_instance 83 }; 68 // GCC: initializer element is not constant 69 wrap_c(char) error_obj @= { count_obj }; 84 70 85 71 #elif SHOW_ERROR == 7 … … 109 95 wrap_o(char) wrap_obj @= { 'c' }; 110 96 97 // related to SHOW_ERROR == 3 98 void local_case3() { 99 // correctly picks preferred among 2 alternatives 100 wrap_c(int) error_obj @= { count_obj }; 101 } 102 103 // related to SHOW_ERROR == 4 104 void local_case4() { 105 // correctly picks preferred among 2 alternatives 106 wrap_c(char) error_obj @= { count_obj }; 107 } 108 109 // formerely SHOW_ERROR == 5 110 // correctly picks preferred among 2 alternatives 111 child_vtable(int) child_vtable_instance = { 112 &base_vtable_instance 113 }; 114 115 // formerely SHOW_ERROR == 6 116 // correctly picks preferred among 2 alternatives 117 child_vtable(char) child_vtable_instance @= { 118 &base_vtable_instance 119 }; 120 121 111 122 int main(void) { 112 123 wrap_e(int) wrap_obj = { empty_obj };