[Bug libstdc++/54606] New: reference assignment failing/points at previous object

2012-09-17 Thread gcc at gyw dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54606 Bug #: 54606 Summary: reference assignment failing/points at previous object Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal

[Bug c++/54606] reference assignment failing/points at previous object

2012-09-25 Thread gcc at gyw dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54606 --- Comment #3 from Troy 2012-09-25 09:13:34 UTC --- I think more to the point, and a better mnemonic, is to say that "there are no references in C++." What is called a reference in C++ is really just a rename/alias for the variable. To rei

[Bug ada/68171] New: Default value in record for component type with predicate causes bug box

2015-10-31 Thread gcc at gyw dot com
: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: gcc at gyw dot com Target Milestone: --- Created attachment 36629 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36629&action=edit Test file to reproduce bug When a

[Bug ada/68171] Default value in record for component with predicate causes bug box

2015-11-01 Thread gcc at gyw dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68171 --- Comment #1 from Troy --- As an aside, the test is based on an example in the Ada 2012 Rationale. The original uses Static_Predicate, but fails to compile with gnat 4.9.2. That is why I used Dynamic_Predicate instead.

[Bug ada/68179] New: No warning when specifying a Default_Component_Value on derived type, resulting in unexpected behavior

2015-11-02 Thread gcc at gyw dot com
: UNCONFIRMED Severity: major Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: gcc at gyw dot com Target Milestone: --- Created attachment 36634 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36634&action=edit Samp

[Bug ada/68179] No warning when specifying a Default_Component_Value on derived type, resulting in unexpected behavior

2015-11-02 Thread gcc at gyw dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68179 --- Comment #1 from Troy --- Command line to build sample code: gnatmake -gnat12 -gnatE -gnatf -gnatn -gnato -gnatX -gnatwa -gnatVa ada2012bug2

[Bug ada/68179] Missing error on Default_Value and Default_Component_Value aspects specified for derived type

2015-11-03 Thread gcc at gyw dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68179 --- Comment #3 from Troy --- RM 3.6. 22.2/3 says that Default_Component_Value should only be specified for a full_type_declaration. I.e. not for derived types. Is this not correct?

[Bug ada/68179] Missing error on Default_Value and Default_Component_Value aspects specified for derived type

2015-11-03 Thread gcc at gyw dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68179 --- Comment #4 from Troy --- You are correct that RM 3.5. 56.3/3 says the same for Default_Value, that it shall only be applied to full_type_declaration. So obviously full_type_declaration here must include derived types, or the whole feature wou