https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120030

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
```
void my_display2()  __attribute__ ((constructor (140))) __attribute__
((constructor)) ;
```

Also ICEs in the same way. 


The documentation does not talk about what happens if you supply constructor
twice either.

https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/Common-Function-Attributes.html#index-constructor-function-attribute
.

So we could declare once a non default one is set, you couldn't go back, but
then that would be odd with:
```
void my_display2()  __attribute__ ((constructor (140))) __attribute__
((constructor(65535))) ;
```

Reply via email to