public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45984] New: [4.6 Regression] ICE: canonical types differ for identical types
@ 2010-10-12 13:48 rguenth at gcc dot gnu.org
  2010-10-12 13:48 ` [Bug c++/45984] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-12 13:48 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] ICE: canonical types differ for
                    identical types
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org


> ./cc1plus -quiet -std=c++0x synth.3.ii 
synth.3.ii: In member function 'void freeverb_stereo_t::process(const
chunk_array_stereo_t&, chunk_array_stereo_t&)':
synth.3.ii:31:23: internal compiler error: canonical types differ for identical
types const chunk_array_stereo_t and const chunk_array_t<2ul>
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

typedef __SIZE_TYPE__ size_t;
enum { chunk_size = 16 };
typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__));
typedef float __v4sf __attribute__ ((__vector_size__ (16)));
struct __attribute__((aligned((16)))) float4_t {
    typedef float scalar_t;
    typedef __m128 type_t;
    typedef float4_t return_type_t;
    type_t m;
    inline __attribute__((artificial, gnu_inline, always_inline)) explicit
    float4_t(scalar_t a) : m(((__m128) (__v4sf) { (a), (a), (a), (a) })) { }
    inline __attribute__((artificial, gnu_inline, always_inline, pure)) friend
    return_type_t operator+(float4_t lhs, float4_t rhs) { }
};
template<size_t NumChans>  class __attribute__((aligned((16)))) chunk_array_t {
public:
    typedef float4_t value_type_t;
    typedef value_type_t value_array_t[chunk_size/4];
    enum { num_scalars = chunk_size,    num_values = num_scalars/4  };
    const value_array_t &chan(size_t c) const { }
    value_type_t operator[](size_t i) const { }
};
typedef chunk_array_t<1> chunk_array_mono_t;
typedef chunk_array_t<2> chunk_array_stereo_t;
class freeverb_stereo_t {
    void process(const chunk_array_stereo_t & __restrict__ src,
                 chunk_array_stereo_t & __restrict__ dst) {
        enum { chunk_size = chunk_array_t<1>::num_values };
        chunk_array_mono_t mix;
        for (size_t i=0; i<chunk_size; ++i)
          mix[i] = src.chan(0)[i] + src.chan(1)[i];
    }
};


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

* [Bug c++/45984] [4.6 Regression] ICE: canonical types differ for identical types
  2010-10-12 13:48 [Bug c++/45984] New: [4.6 Regression] ICE: canonical types differ for identical types rguenth at gcc dot gnu.org
@ 2010-10-12 13:48 ` rguenth at gcc dot gnu.org
  2010-10-13 13:15 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-12 13:48 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking,
                   |                            |ice-on-valid-code
      Known to work|                            |4.5.1
   Target Milestone|---                         |4.6.0


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

* [Bug c++/45984] [4.6 Regression] ICE: canonical types differ for identical types
  2010-10-12 13:48 [Bug c++/45984] New: [4.6 Regression] ICE: canonical types differ for identical types rguenth at gcc dot gnu.org
  2010-10-12 13:48 ` [Bug c++/45984] " rguenth at gcc dot gnu.org
@ 2010-10-13 13:15 ` jason at gcc dot gnu.org
  2010-10-14  0:50 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2010-10-13 13:15 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2010.10.13 13:14:52
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1


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

* [Bug c++/45984] [4.6 Regression] ICE: canonical types differ for identical types
  2010-10-12 13:48 [Bug c++/45984] New: [4.6 Regression] ICE: canonical types differ for identical types rguenth at gcc dot gnu.org
  2010-10-12 13:48 ` [Bug c++/45984] " rguenth at gcc dot gnu.org
  2010-10-13 13:15 ` jason at gcc dot gnu.org
@ 2010-10-14  0:50 ` jason at gcc dot gnu.org
  2010-10-14  1:04 ` tbptbp at gmail dot com
  2010-10-14 12:25 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2010-10-14  0:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2010-10-14 00:50:30 UTC ---
Author: jason
Date: Thu Oct 14 00:50:26 2010
New Revision: 165443

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165443
Log:
    PR c++/45984
    * class.c (fixup_attribute_variants): New fn.
    * cp-tree.h: Declare it.
    * pt.c (instantiate_class_template): Call it.
    * semantics.c (begin_class_definition): Call it.

Added:
    trunk/gcc/testsuite/g++.dg/template/canon-type-8.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/45984] [4.6 Regression] ICE: canonical types differ for identical types
  2010-10-12 13:48 [Bug c++/45984] New: [4.6 Regression] ICE: canonical types differ for identical types rguenth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2010-10-14  0:50 ` jason at gcc dot gnu.org
@ 2010-10-14  1:04 ` tbptbp at gmail dot com
  2010-10-14 12:25 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: tbptbp at gmail dot com @ 2010-10-14  1:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from tbp <tbptbp at gmail dot com> 2010-10-14 01:03:50 UTC ---
(In reply to comment #1)
> Author: jason
> Date: Thu Oct 14 00:50:26 2010
> New Revision: 165443
> 
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165443
Thanks!
Am i right to infer this may also take care of PR45642?


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

* [Bug c++/45984] [4.6 Regression] ICE: canonical types differ for identical types
  2010-10-12 13:48 [Bug c++/45984] New: [4.6 Regression] ICE: canonical types differ for identical types rguenth at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2010-10-14  1:04 ` tbptbp at gmail dot com
@ 2010-10-14 12:25 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-14 12:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-14 12:25:36 UTC ---
Fixed.


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

end of thread, other threads:[~2010-10-14 12:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-12 13:48 [Bug c++/45984] New: [4.6 Regression] ICE: canonical types differ for identical types rguenth at gcc dot gnu.org
2010-10-12 13:48 ` [Bug c++/45984] " rguenth at gcc dot gnu.org
2010-10-13 13:15 ` jason at gcc dot gnu.org
2010-10-14  0:50 ` jason at gcc dot gnu.org
2010-10-14  1:04 ` tbptbp at gmail dot com
2010-10-14 12:25 ` rguenth at gcc dot gnu.org

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