VAX 10.7.1903.0 built 2012.04.03
I've noticed a really annoying bug with auto-complete for nested structs.
Take this class definition:
class ProgressHandler : public State
{
public:
struct TagInfo
{
String FileUrl;
int TagType;
int TagOffset;
int TagLength;
int TagDataOffset;
};
};
And then use it in the following code:
void LoadTagUpdate( const Middleware::ProgressHandler::TagInfo& info )
{
debugPrint("Tag for %s: Offset %d, Size %d \\n", info.FileUrl.ToCStr(), info.TagOffset, info.TagLength );
}
Typing "info." brings up an autocomplete window as usual, but selecting any of the entries (pressing Tab or Enter) inserts the symbol at the *beginning* of the file! For example, if you type "info.Fi" and then press enter expecting "info.FileUrl", it leaves "info.Fi" alone and inserts "FileUrl" at the beginning of the file.
If you're using precompiled headers, the compiler ignores everything before "include "stdafx.h", so you can unknowingly end up with lots of random symbols piled up at the top of the file..
This only seems to occur for nested structs (defined inside classes). I'm not sure it always happens for nested structs, but I do know I've never seen it happen for non-nested structs.