This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH for attribute crash



-- 
Mark Mitchell 			mark@markmitchell.com
Mark Mitchell Consulting	http://www.markmitchell.com

1998-08-31  Mark Mitchell  <mark@markmitchell.com>

	* decl2.c (grok_x_components): Strip attributres before calling
	groktypename. 

Index: testsuite/g++.old-deja/g++.other/crash4.C
===================================================================
RCS file: crash4.C
diff -N crash4.C
*** /dev/null	Mon Dec 31 20:00:00 1979
--- crash4.C	Mon Aug 31 23:25:22 1998
***************
*** 0 ****
--- 1,7 ----
+ // Build don't link:
+ 
+ struct T {
+   struct S __attribute__ ((packed)) { // ERROR - parse error
+     int i;                            
+   };
+ }; // ERROR - parse error
Index: cp/decl2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/decl2.c,v
retrieving revision 1.123
diff -c -p -r1.123 decl2.c
*** decl2.c	1998/08/28 16:11:33	1.123
--- decl2.c	1998/09/01 06:28:04
*************** grok_x_components (specs, components)
*** 875,881 ****
  
    if (components == NULL_TREE)
      {
!       t = groktypename (build_decl_list (specs, NULL_TREE));
  
        if (t == NULL_TREE)
  	{
--- 875,882 ----
  
    if (components == NULL_TREE)
      {
!       t = groktypename (build_decl_list (strip_attrs (specs),
! 					 NULL_TREE)); 
  
        if (t == NULL_TREE)
  	{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]