public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ 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] 9+ 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 ` [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type steven at gcc dot gnu.org
@ 2011-03-05  0:33 ` paolo.carlini at oracle dot com
  2011-06-23 11:01 ` [Bug c++/44625] [4.3/4.4/4.5/4.6/4.7 " paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ 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] 9+ messages in thread

* [Bug c++/44625] [4.3/4.4/4.5/4.6/4.7 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 ` [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type steven at gcc dot gnu.org
  2011-03-05  0:33 ` paolo.carlini at oracle dot com
@ 2011-06-23 11:01 ` paolo.carlini at oracle dot com
  2011-06-23 16:59 ` paolo at gcc dot gnu.org
  2011-06-23 17:01 ` [Bug c++/44625] [4.3/4.4/4.5/4.6 " paolo.carlini at oracle dot com
  4 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-06-23 11: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|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-23 11:01:01 UTC ---
On it (again ;)


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

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

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

--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-06-23 16:58:31 UTC ---
Author: paolo
Date: Thu Jun 23 16:58:28 2011
New Revision: 175344

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175344
Log:
/cp
2011-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/44625
    * decl2.c (build_anon_union_vars): Early return error_mark_node
    for a nested anonymous struct.

/testsuite
2011-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/44625
    * g++.dg/template/crash107.C: New.
    * g++.dg/template/error17.C: Adjust.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash107.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/template/error17.C


^ permalink raw reply	[flat|nested] 9+ 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/>
                   ` (3 preceding siblings ...)
  2011-06-23 16:59 ` paolo at gcc dot gnu.org
@ 2011-06-23 17:01 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 9+ 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] 9+ 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: " doko at ubuntu dot com
                   ` (2 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
  3 siblings, 0 replies; 9+ 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] 9+ 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: " doko at ubuntu dot com
  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
  3 siblings, 0 replies; 9+ 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] 9+ 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: " doko at ubuntu dot com
  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
  3 siblings, 0 replies; 9+ 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] 9+ 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: " doko at ubuntu dot com
@ 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)
  3 siblings, 0 replies; 9+ 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] 9+ messages in thread

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

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

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).