public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/34624] templated code is rejected different type in nontype template argument Date: Tue, 30 Dec 2008 17:29:00 -0000 [thread overview] Message-ID: <20081230172542.19688.qmail@sourceware.org> (raw) In-Reply-To: <bug-34624-12873@http.gcc.gnu.org/bugzilla/> ------- Comment #10 from pinskia at gcc dot gnu dot org 2008-12-30 17:25 ------- Here is a reduced testcase which is rejected for both -m32 and -m64: typedef unsigned long size_t; template <typename t, size_t len> class array {}; typedef unsigned int uint; template<typename sampletype, uint size> struct my_table: array<sampletype, size> {}; template<typename sampletype, uint size> inline const sampletype * get_samples(array<sampletype, size> const &buffer) { } int main() { my_table<float, 1024> tab; const float * ptr = get_samples(tab); } -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|valid c++ code doesn't |templated code is rejected |compile for x86_64, but for |different type in nontype |i386 |template argument http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34624
next prev parent reply other threads:[~2008-12-30 17:29 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-12-30 13:27 [Bug c++/34624] New: valid c++ code doesn't compile for x86_64, but for i386 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 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 ` pinskia at gcc dot gnu dot org [this message] 2008-12-30 17:31 ` [Bug c++/34624] templated code is rejected different type in nontype template argument pinskia at gcc dot gnu dot org [not found] <bug-34624-4@http.gcc.gnu.org/bugzilla/> 2013-08-01 10:43 ` paolo.carlini at oracle dot com
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=20081230172542.19688.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).