http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46690

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.28 12:08:05
     Ever Confirmed|0                           |1

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-28 
12:08:05 UTC ---
With 4.5 you get a much better error:

use.cc:9:5: error: ‘C’ does not name a type
use.cc:9:5: note: (perhaps ‘typename A<T>::C’ was intended)
use.cc: In function ‘int main()’:
use.cc:15:8: error: no match for ‘operator[]’ in ‘b[2]’

But it should be accepted

Reply via email to