public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34624] templated code is rejected different type in nontype template argument
[not found] <bug-34624-4@http.gcc.gnu.org/bugzilla/>
@ 2013-08-01 10:43 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-01 10:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34624
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC|gcc-bugs at gcc dot gnu.org |
Resolution|--- |INVALID
Known to fail| |
--- Comment #12 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Closing.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/34624] templated code is rejected different type in nontype template argument
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-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
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-30 17:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from pinskia at gcc dot gnu dot org 2008-12-30 17:27 -------
>but I'm not quite sure if it still reproduces the original issue
Yes it does, I had missed your reduced testcase before.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Known to fail| |3.3 4.0.1 4.3.3 4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34624
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/34624] templated code is rejected different type in nontype template argument
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-12-30 17:29 ` pinskia at gcc dot gnu dot org
2008-12-30 17:31 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-30 17:29 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-01 10:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-34624-4@http.gcc.gnu.org/bugzilla/>
2013-08-01 10:43 ` [Bug c++/34624] templated code is rejected different type in nontype template argument paolo.carlini at oracle dot com
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-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
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).