[Bug c++/5026] __attribute__ ((unused) seems misdocumented

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Feb 24 14:21:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-02-24 14:21 -------
The reason why it is not allowed in C++ on labels has been stated 
several times: in C++, a variable declaration can follow a label, 
so the attribute that you want to attach to the label really goes 
to the next statement; gcc expects it to be a declaration, and 
complains if it can't find one. 
 
W. 

-- 


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



More information about the Gcc-bugs mailing list