Your first example, because it doesn't declare anything, shows an attempt at an anonymous struct (which is not allowed - 7/3) rather than an unnamed one (which is).
The grammar in 9/1 of the C++11 standard seems to allow an unnamed class to have a base, so I think your second example is fine.