This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17011] [3.4/3.5 regression] invalid default parameter diagnosed too late


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]