[cfe-commits] r58916 - in /cfe/trunk: include/clang/AST/DeclBase.h include/clang/AST/DeclCXX.h include/clang/Basic/DiagnosticKinds.def lib/Sema/Sema.cpp lib/Sema/Sema.h lib/Sema/SemaCXXScopeSpec.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaExpr.cpp test/SemaCXX/nested-name-spec.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sun Nov 9 04:33:34 PST 2008


Argiris Kirtzidis wrote:
> It would be great if you could take nested-names "for a ride" and try 
> to uncover potential problems.
> I'm mostly interested in crashes or hitting asserts.

Got one.

struct O {
  struct I;
};

struct O::I {
};

Crashes with:
clang: SemaDecl.cpp:81: void 
clang::Sema::PushDeclContext(clang::DeclContext*): Assertion 
`getContainingDC(DC) == CurContext && "The next DeclContext should be 
directly contained in the current one."' failed.


I think the assertion is simply bogus, though.

Sebastian



More information about the cfe-commits mailing list