[Bug c/37519] confusing error message about attribute section name type

2021-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37519

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |6.0
 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #3 from Andrew Pinski  ---
Fixed in GCC 6 by r6-343:
:1:1: error: section attribute argument not a string constant
 int x __attribute__ ((__section__(1)));
 ^~~

Note the column info is wrong and that is filed already as a seperate bug.

[Bug c/37519] confusing error message about attribute section name type

2008-09-14 Thread nm127 at freemail dot hu


--- Comment #1 from nm127 at freemail dot hu  2008-09-14 09:18 ---
Created an attachment (id=16317)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16317action=view)
add a new error message for attribute section parameter type check

This patch separates the type check of the attribute section.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37519



[Bug c/37519] confusing error message about attribute section name type

2008-09-14 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2008-09-14 10:09 ---
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||diagnostic
   Last reconfirmed|-00-00 00:00:00 |2008-09-14 10:09:24
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37519