This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/45983] ICE: tree code 'template_parm_index' is not supported in gimple streams with -lto


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-15 15:21:43 UTC ---
Ha.  We reject

template <int N>
class T1 {
    int m[N];
    typedef float scalar_type_t;
    typedef scalar_type_t scalar_array_t[1];
    const scalar_array_t &decay(void) const;
};
class T2 {
public:
    float vals[1];
    float* get_value(void) const { return vals; }
};
T2 channel_params;
float *output_audio(void) {
    return channel_params.get_value();
}

> ./cc1plus -quiet t.ii 
t.ii: In member function 'float* T2::get_value() const':
t.ii:11:43: error: invalid conversion from 'const scalar_type_t*' to 'float*'
[-fpermissive]

fun ;)


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