public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44625]  New: ICE after error: anonymous struct not inside named type
@ 2010-06-22  8:35 doko at ubuntu dot com
  2010-06-22  8:36 ` [Bug c++/44625] " doko at ubuntu dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: doko at ubuntu dot com @ 2010-06-22  8:35 UTC (permalink / raw)
  To: gcc-bugs

seen with 4.3, 4.4, 4.5 and trunk:

Starting program: /scratch/packages/gcc/4.4/gcc-4.4-4.4.4/build/gcc/cc1plus
-fpreprocessed ../../Vector3D.ii -quiet -dumpbase Vector3D.ii -mtune=generic
-auxbase Vector3D -version -fpermissive -o /tmp/ccG8KwAM.s
GNU C++ (Debian 4.4.4-6) version 4.4.4 (x86_64-linux-gnu)
        compiled by GNU C version 4.4.4, GMP version 4.3.2, MPFR version
2.4.2-p1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 98feda5ccf2f6c27a26b5ced57e2b3dd
In file included from Vector3D.cpp:4:
Vector3D.h: In member function 'Vec<FP_>& Vec<FP_>::operator^=(Vec<FP_>&)':
Vector3D.h:112: error: anonymous struct not inside named type
Vector3D.h: In member function 'Vec<FP_>& Vec<FP_>::operator^=(Vec<FP_>&) [with
FP_ = double]':
Vector3D.cpp:19:   instantiated from here
Vector3D.h:112: error: anonymous struct not inside named type

Program received signal SIGSEGV, Segmentation fault.
tsubst_copy_and_build (t=0x0, args=0x7ffff6112fc0,
complain=tf_warning_or_error, 
    in_decl=0x7ffff62b2c80, function_p=<value optimized out>, 
    integral_constant_expression_p=<value optimized out>) at
../../src/gcc/cp/pt.c:11716
11716           if (BASELINK_P (member))
(gdb) p member
$1 = (tree) 0x0


-- 
           Summary: ICE after error: anonymous struct not inside named type
           Product: gcc
           Version: 4.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] ICE after error: anonymous struct not inside named type
  2010-06-22  8:35 [Bug c++/44625] New: ICE after error: anonymous struct not inside named type doko at ubuntu dot com
@ 2010-06-22  8:36 ` doko at ubuntu dot com
  2010-06-22  9:21 ` manu at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: doko at ubuntu dot com @ 2010-06-22  8:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from doko at ubuntu dot com  2010-06-22 08:36 -------
Created an attachment (id=20974)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20974&action=view)
preprocessed source


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] ICE after error: anonymous struct not inside named type
  2010-06-22  8:35 [Bug c++/44625] New: ICE after error: anonymous struct not inside named type doko at ubuntu dot com
  2010-06-22  8:36 ` [Bug c++/44625] " doko at ubuntu dot com
@ 2010-06-22  9:21 ` manu at gcc dot gnu dot org
  2010-06-22 11:08 ` [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-06-22  9:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from manu at gcc dot gnu dot org  2010-06-22 09:21 -------
Confirmed in trunk. A reduce testcase would be helpful:

http://gcc.gnu.org/bugs/minimize.html


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-06-22 09:21:23
               date|                            |


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
  2010-06-22  8:35 [Bug c++/44625] New: ICE after error: anonymous struct not inside named type doko at ubuntu dot com
  2010-06-22  8:36 ` [Bug c++/44625] " doko at ubuntu dot com
  2010-06-22  9:21 ` manu at gcc dot gnu dot org
@ 2010-06-22 11:08 ` rguenth at gcc dot gnu dot org
  2010-06-24 21:32 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-22 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-06-22 11:08 -------
Reduced testcase (but with more and slightly different errors)

template<typename FP_> class Vec {
    Vec& operator^=(Vec& rhs)     {
        union {
            struct {FP_ x,y,z;};
        };
        X = y*rhs.z() - z*rhs.y();
    }
    Vec& operator^(Vec& rhs) {
        return Vec(*this)^=rhs;
    }
};
Vec<double> v(3,4,12);
Vec<double>V(12,4,3);
Vec<double> c = v^V;


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |3.4.6
            Summary|ICE after error: anonymous  |[4.3/4.4/4.5/4.6 Regression]
                   |struct not inside named type|ICE after error: anonymous
                   |                            |struct not inside named type


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
  2010-06-22  8:35 [Bug c++/44625] New: ICE after error: anonymous struct not inside named type doko at ubuntu dot com
                   ` (2 preceding siblings ...)
  2010-06-22 11:08 ` [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
@ 2010-06-24 21:32 ` rguenth at gcc dot gnu dot org
  2010-06-24 21:58 ` rguenth at gcc dot gnu dot org
  2010-07-05 11:05 ` paolo dot carlini at oracle dot com
  5 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-24 21:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.6


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
  2010-06-22  8:35 [Bug c++/44625] New: ICE after error: anonymous struct not inside named type doko at ubuntu dot com
                   ` (3 preceding siblings ...)
  2010-06-24 21:32 ` rguenth at gcc dot gnu dot org
@ 2010-06-24 21:58 ` rguenth at gcc dot gnu dot org
  2010-07-05 11:05 ` paolo dot carlini at oracle dot com
  5 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-24 21:58 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
  2010-06-22  8:35 [Bug c++/44625] New: ICE after error: anonymous struct not inside named type doko at ubuntu dot com
                   ` (4 preceding siblings ...)
  2010-06-24 21:58 ` rguenth at gcc dot gnu dot org
@ 2010-07-05 11:05 ` paolo dot carlini at oracle dot com
  5 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-07-05 11:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2010-07-05 11:04 -------
On it.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|NEW                         |ASSIGNED


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
       [not found] <bug-44625-4@http.gcc.gnu.org/bugzilla/>
  2011-03-05  0:26 ` steven at gcc dot gnu.org
  2011-03-05  0:33 ` paolo.carlini at oracle dot com
@ 2011-06-23 17:01 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-06-23 17:01 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |4.7.0
         Resolution|                            |FIXED
   Target Milestone|4.3.6                       |4.7.0
            Summary|[4.3/4.4/4.5/4.6/4.7        |[4.3/4.4/4.5/4.6
                   |Regression] ICE after       |Regression] ICE after
                   |error: anonymous struct not |error: anonymous struct not
                   |inside named type           |inside named type

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-23 17:00:55 UTC ---
Fixed for 4.7.0.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
       [not found] <bug-44625-4@http.gcc.gnu.org/bugzilla/>
  2011-03-05  0:26 ` steven at gcc dot gnu.org
@ 2011-03-05  0:33 ` paolo.carlini at oracle dot com
  2011-06-23 17:01 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-03-05  0:33 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
       [not found] <bug-44625-4@http.gcc.gnu.org/bugzilla/>
@ 2011-03-05  0:26 ` steven at gcc dot gnu.org
  2011-03-05  0:33 ` paolo.carlini at oracle dot com
  2011-06-23 17:01 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 10+ messages in thread
From: steven at gcc dot gnu.org @ 2011-03-05  0:26 UTC (permalink / raw)
  To: gcc-bugs

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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven at gcc dot gnu.org
      Known to fail|                            |

--- Comment #5 from Steven Bosscher <steven at gcc dot gnu.org> 2011-03-05 00:26:18 UTC ---
Paolo, still on it?


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-23 17:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-22  8:35 [Bug c++/44625] New: ICE after error: anonymous struct not inside named type doko at ubuntu dot com
2010-06-22  8:36 ` [Bug c++/44625] " doko at ubuntu dot com
2010-06-22  9:21 ` manu at gcc dot gnu dot org
2010-06-22 11:08 ` [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
2010-06-24 21:32 ` rguenth at gcc dot gnu dot org
2010-06-24 21:58 ` rguenth at gcc dot gnu dot org
2010-07-05 11:05 ` paolo dot carlini at oracle dot com
     [not found] <bug-44625-4@http.gcc.gnu.org/bugzilla/>
2011-03-05  0:26 ` steven at gcc dot gnu.org
2011-03-05  0:33 ` paolo.carlini at oracle dot com
2011-06-23 17:01 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).