This is the mail archive of the gcc-patches@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]

Re: [C++] Unreviewed patches


Nathan Sidwell <nathan@codesourcery.com> writes:

| In addition, as D is non-dependent, the typename keyword should not be there.
| But IIRC there is/may be a DR about relaxing the typename rule. Originally
| it was either needed or not-allowed, there was no overlap.  If DR224 is
| implemented, without relaxing the typename rule, a lot of code will become
| ill-formed. See DR409.

There ought to be a paragraph somewhere in the TC, i.e. C++2003,
saying that "typename" can be used in such circumstance even if the
nested-qualifier is not dependent.  The only requirement is that that
happens in template code.

-- Gaby


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