This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45983] ICE: tree code 'template_parm_index' is not supported in gimple streams with -lto
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Oct 2010 15:21:58 +0000
- Subject: [Bug c++/45983] ICE: tree code 'template_parm_index' is not supported in gimple streams with -lto
- Auto-submitted: auto-generated
- References: <bug-45983-4@http.gcc.gnu.org/bugzilla/>
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 ;)