oizma / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

TType::TType constructors initialize members out of order #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build angle

What is the expected output?
no warnings

What do you see instead?
compiler/Types.h:
 In constructor ‘TType::TType(TBasicType, TPrecision, TQualifier, int, bool, bool)’:
286: warning: ‘TType::structureSize’ will be initialized after
282: warning:   ‘int TType::maxArraySize’
86: warning:   when initialized here
 In constructor ‘TType::TType(const TPublicType&)’:
286: warning: ‘TType::structureSize’ will be initialized after
282: warning:   ‘int TType::maxArraySize’
91: warning:   when initialized here
 In constructor ‘TType::TType(TTypeList*, const TString&, TPrecision)’:
286: warning: ‘TType::structureSize’ will be initialized after
282: warning:   ‘int TType::maxArraySize’
100: warning:   when initialized here
In file included from compiler/intermediate.h:21,
                 from compiler/SymbolTable.h:36,
                 from compiler/ShHandle.h:21,
                 from compiler/Initialize.h:11,
                 from compiler/Compiler.cpp:7:

What version of the product are you using?
498

On what operating system?
os x

Original issue reported on code.google.com by timel...@gmail.com on 1 Dec 2010 at 10:36

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dan...@transgaming.com on 12 Dec 2010 at 6:29

GoogleCodeExporter commented 9 years ago
fixed in r501

Original comment by dan...@transgaming.com on 12 Dec 2010 at 8:55

GoogleCodeExporter commented 9 years ago
This caused a structure parsing regression. Fix attached.

Original comment by nicolas....@gmail.com on 15 Dec 2010 at 8:18

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r511.

Original comment by nicolas....@gmail.com on 15 Dec 2010 at 3:50