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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to