Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter ‘inArray’ shadows a member of 'Level' in writer.h #28

Closed
GoogleCodeExporter opened this issue Jan 31, 2016 · 5 comments
Closed

Comments

@GoogleCodeExporter
Copy link

GCC complains about line 92 in writer.h

Level(bool inArray) : inArray(inArray), valueCount(0) {}

Please rename the parameter.

Original issue reported on code.google.com by mte...@googlemail.com on 12 Jun 2012 at 10:11

@GoogleCodeExporter
Copy link
Author

It is perfectly legal in initializer lists. The problem is on GCC side. 
http://stackoverflow.com/questions/2227244/what-if-a-constructor-parameter-has-t
he-same-name-as-a-member-variable-in-c

Original comment by Mapholameth on 8 Oct 2012 at 6:54

@GoogleCodeExporter
Copy link
Author

Original comment by milo...@gmail.com on 12 Nov 2012 at 4:02

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r78.

Original comment by milo...@gmail.com on 14 Nov 2012 at 2:58

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r79.

Original comment by milo...@gmail.com on 14 Nov 2012 at 2:59

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision 94d05da2bc0f.

Original comment by milo...@gmail.com on 6 Jun 2014 at 6:04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant