[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: c++/3033: 'using typename' construct doesn't work

sethml@ofb.net writes:

| 	C++ allows the word 'typename' after a 'using' directive.  _The C++ Programming Language_ (third edition) [Stroustrup], section A.7 (Grammar/Declarations) defines the using directive:
| 	  using-declaration:
| 	      "using" "typename"(opt) "::"(opt) nested-name-specifier 
| 	      unqualified-id ";"

The C++ grammar is not context-free, you cannot deduce construct
validity just from pure grammar productions.

-- Gaby

Reply to: