public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13916] New: default function arguments and passage as template arguments
@ 2004-01-29 4:15 japple at freeshell dot org
2004-01-29 4:18 ` [Bug c++/13916] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: japple at freeshell dot org @ 2004-01-29 4:15 UTC (permalink / raw)
To: gcc-bugs
void f(int a = 0);
void g(int);
template<typename T, T * x>
struct foo {
foo() { x(); }
};
int main() {
foo<void (int), f> bar;
foo<void (int), g> baz;
}
bar passes, but baz doesn't. If baz compiled, I would suspect this to be an
incarnation of bug 4205, but it doesn't, so it looks different to me.
--
Summary: default function arguments and passage as template
arguments
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: japple at freeshell dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: linux x86
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13916
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-29 4:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29 4:15 [Bug c++/13916] New: default function arguments and passage as template arguments japple at freeshell dot org
2004-01-29 4:18 ` [Bug c++/13916] " 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).