[Bug c++/40821] C++ compiler accepts __attribute__ with missing parens

2009-12-26 Thread paolo dot carlini at oracle dot com


--- Comment #2 from paolo dot carlini at oracle dot com  2009-12-26 19:12 
---
Maybe related to c++/36625 ?


-- 


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



[Bug c++/40821] C++ compiler accepts __attribute__ with missing parens

2012-05-16 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40821

Paolo Carlini  changed:

   What|Removed |Added

 CC||matias.fontanini at gmail
   ||dot com

--- Comment #3 from Paolo Carlini  2012-05-16 
12:26:42 UTC ---
*** Bug 53370 has been marked as a duplicate of this bug. ***


[Bug c++/40821] C++ compiler accepts __attribute__ with missing parens

2012-05-19 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40821

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC|gcc-bugs at gcc dot gnu.org |
 AssignedTo|unassigned at gcc dot   |paolo.carlini at oracle dot
   |gnu.org |com

--- Comment #4 from Paolo Carlini  2012-05-19 
18:48:13 UTC ---
Mine.


[Bug c++/40821] C++ compiler accepts __attribute__ with missing parens

2012-05-21 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40821

Paolo Carlini  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.8.0

--- Comment #6 from Paolo Carlini  2012-05-21 
15:17:15 UTC ---
Fixed for 4.8.0.


[Bug c++/40821] C++ compiler accepts __attribute__ with missing parens

2012-05-21 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40821

--- Comment #5 from paolo at gcc dot gnu.org  
2012-05-21 15:12:24 UTC ---
Author: paolo
Date: Mon May 21 15:12:13 2012
New Revision: 187720

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187720
Log:
/cp
2012-05-21  Paolo Carlini  

PR c++/51184
* decl.c (grokdeclarator): Diagnose functions returning abstract
class types as TYPENAME.
* cp-tree.h (ABSTRACT_CLASS_TYPE_P): Add.
* except.c (is_admissible_throw_operand_or_catch_parameter): Use it.
* pt.c (tsubst): Likewise.
* semantics.c (trait_expr_value): Likewise.

/testsuite
2012-05-21  Paolo Carlini  

PR c++/51184
* g++.dg/other/abstract4.C: New-

/cp
2012-05-21  Paolo Carlini  

PR c++/40821
* parser.c (cp_parser_attributes_opt): Enforce error checking of
unbalanced parentheses in the presence of tentative parsing.

/testsuite
2012-05-21  Paolo Carlini  

PR c++/40821
* g++.dg/ext/attrib46.C: New.

Added:
trunk/gcc/testsuite/g++.dg/ext/attrib46.C
trunk/gcc/testsuite/g++.dg/other/abstract4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/except.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog


[Bug c++/40821] C++ compiler accepts __attribute__ with missing parens

2009-08-25 Thread bangerth at gmail dot com


--- Comment #1 from bangerth at gmail dot com  2009-08-25 14:15 ---
Confirmed. Very odd.


-- 

bangerth at gmail dot com changed:

   What|Removed |Added

 CC||bangerth at gmail dot com
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-08-25 14:15:38
   date||


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