Closed
Description
This is one of the tests in syntax-extension-fmt.rs
:
printf("%06.5x\n", 127);
In this case the zero-padding overrides the precision (.5) so precision has no effect. Old gcc's accepted this silently, so we do too, but gcc 4.5 (at least) prints a warning about zero-padding and precision being incompatible here, so we should make this (and similar) cases into compile time errors.
Metadata
Metadata
Assignees
Labels
No labels