Issue #508: Classprefix is not restored after nested structures processing. Also, Classprefix is incorrectly checked in some places.

This commit is contained in:
Vladimir Kalinin 2015-10-01 15:06:42 +03:00
commit ec93b01a09
2 changed files with 17 additions and 5 deletions

View file

@ -55,6 +55,10 @@
#pragma GCC diagnostic ignored "-Wpedantic"
#endif
namespace bar {
int foo() { return 0; }
}
struct Outer {
typedef int Integer;
///////////////////////////////////////////
@ -129,10 +133,16 @@ struct Outer {
Integer x;
} InnerClass4Typedef;
#ifdef _MSC_VER
int Outer::foo(){ return 1; } // should correctly ignore qualification here (#508)
#endif
typedef struct {
Integer x;
} InnerStruct4Typedef;
friend int bar::foo(); // should parse correctly (#508)
typedef union {
Integer x;
double y;