[cfe-commits] A regression on parsing of partial specializations?
Douglas Gregor
dgregor at apple.com
Wed Jan 5 14:33:46 PST 2011
On Jan 5, 2011, at 2:05 PM, Enea Zaffanella wrote:
> After upgrading clang to r122900, the following program (from gcc
> testsuite) is no longer parsed by clang:
>
> struct B { int i; };
>
> template <class _T, class _M, _M _T::* _V> struct A;
>
> template <class _T, int _T::* _V>
> struct A<_T, int, _V> {};
>
> int main() {
> A<B, int, & B::i> a;
> }
>
>
> llvm/Debug+Asserts/bin/clang -cc1 -fsyntax-only bug.cc
> clang: SemaTemplate.cpp:3549: clang::ExprResult
> clang::Sema::BuildExpressionFromDeclTemplateArgument(const
> clang::TemplateArgument&, clang::QualType, clang::SourceLocation):
> Assertion `!RefExpr.isInvalid() && Context.hasSameType(((Expr*)
> RefExpr.get())->getType(), ParamType.getUnqualifiedType())' failed.
It's working for me... I may have fixed it in r122902.
- Doug
More information about the cfe-commits
mailing list