public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "Ralf dot Wildenhues at gmx dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/34624] valid c++ code doesn't compile for x86_64, but for i386 Date: Mon, 14 Jan 2008 09:33:00 -0000 [thread overview] Message-ID: <20080114074216.14797.qmail@sourceware.org> (raw) In-Reply-To: <bug-34624-12873@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from Ralf dot Wildenhues at gmx dot de 2008-01-14 07:42 ------- This fails with both -m32 and -m64 (but I'm not quite sure if it still reproduces the original issue): typedef unsigned long size_t; template<typename _Tp, size_t _Nm = 1> struct array { }; template<typename sampletype, unsigned int size> struct my_table: public array<sampletype, size> { }; template<typename sampletype, unsigned int size> inline const sampletype * get_samples(array<sampletype, size> const & buffer) { return buffer.begin(); } int main() { my_table<float, 1024> tab; const float * ptr = get_samples(tab); } -- Ralf dot Wildenhues at gmx dot de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Ralf dot Wildenhues at gmx | |dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34624
next prev parent reply other threads:[~2008-01-14 7:43 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-12-30 13:27 [Bug c++/34624] New: " tim at klingt dot org 2008-01-13 2:34 ` [Bug c++/34624] " bangerth at dealii dot org 2008-01-13 13:03 ` tim at klingt dot org 2008-01-14 9:33 ` Ralf dot Wildenhues at gmx dot de [this message] 2008-01-14 11:18 ` rguenth at gcc dot gnu dot org 2008-09-22 12:12 ` tim at klingt dot org 2008-12-30 5:42 ` pinskia at gcc dot gnu dot org 2008-12-30 10:00 ` tim at klingt dot org 2008-12-30 10:00 ` tim at klingt dot org 2008-12-30 10:03 ` tim at klingt dot org 2008-12-30 17:29 ` [Bug c++/34624] templated code is rejected different type in nontype template argument pinskia at gcc dot gnu dot org 2008-12-30 17:31 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080114074216.14797.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).