[cfe-commits] [PATCH] Fix handling of dependent nested namespace specifiers in UsingDecls during template instantiation
Martin Vejnár
avakar at technika.junior.cz
Fri Sep 24 06:10:28 PDT 2010
Hi, this patch fixes what is written in subject. In particular, the
following program
template <typename T> struct t {
struct s1 {
T f1();
};
struct s2 : s1 {
using s1::f1;
};
};
template struct t<int>;
is now parsed without errors. Originally, no substitution was performed on
`s1` in the UsingDecl, which resulted in an error (t<T>::s1 is not a base
class of t<int>::s2).
A test case is included as well.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dependent-using-decls.patch
Type: text/x-patch
Size: 2354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100924/948934a0/attachment.bin>
More information about the cfe-commits
mailing list