Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor editorial changes

...

Running this program produces the expected output.

...

Code Block
languagecpp
 Widget constructed
 Gadget constructed
Widget constructed 
Gadget constructed
3

 

Risk Assessment

Syntactically ambiguous declarations can lead to unexpected program execution. However, it is likely that rudimentary testing would uncover violations of this rule.

...

[ISO/IEC 14882-2014]Subclause 6.8, "Ambiguity Resolution"
Subclause 8.2, "Ambiguity Resolution"
[Meyers 01]Item 6, "Be Alert for C++'s Most Vexing Parse"

 

...