This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15487] New: Fails to accept default arg
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2004 08:02:28 -0000
- Subject: [Bug c++/15487] New: Fails to accept default arg
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In this code:
class A{int j;};
A a;
template<typename B>
void C(B& b = a){}
int main() {
C(a);
C();
return 0;
}
the call C() using the default argument fails although the same argument is accepted when explicitly passed as C(a).
--
Summary: Fails to accept default arg
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15487