[Bug c++/82640] New: gcc doesn't show errors on anonymous local variables
vanyacpp at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Oct 20 17:54:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82640
Bug ID: 82640
Summary: gcc doesn't show errors on anonymous local variables
Product: gcc
Version: 7.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vanyacpp at gmail dot com
Target Milestone: ---
GCC compiles the following code:
int main()
{
int (*);
int (&)[-1];
auto const (&)[3];
}
I believe the code is incorrect as the local variables are unnamed.
More information about the Gcc-bugs
mailing list