This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17011] [3.4/3.5 regression] invalid default parameter diagnosed too late
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2004 22:55:33 -0000
- Subject: [Bug c++/17011] [3.4/3.5 regression] invalid default parameter diagnosed too late
- References: <20040812193920.17011.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-08-12 22:55 -------
Uhm I'm not sure those paragraphs are pertinent. They say that the default
arguments are *instantiated* when they are actually used.
But the PR is about a default argument having a totally wrong syntax: "&a" is
invalid if a is not a static member, and surely it's type is not A<T>* (in the
best case, it would have to be "A<T>* B<T>::*", that is a pointer-to-member).
I guess this basic kind of syntax and type checking is totally orthogonal to
the instantiation time. I incline to confirm this bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-08-12 22:55:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17011