Fix a test-case warning.

PR target/95229
	* g++.target/i386/pr95229.C: Fix
	error: unnamed type with no linkage used
	to declare variable ‘<unnamed class> e’ with linkage
	with -std=gnu++98.
This commit is contained in:
Martin Liska 2020-05-21 14:21:31 +02:00
parent ea097d141e
commit 2f20c7040f
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2020-05-21 Martin Liska <mliska@suse.cz>
PR target/95229
* g++.target/i386/pr95229.C: Fix
error: unnamed type with no linkage used
to declare variable <unnamed class> e with linkage
with -std=gnu++98.
2020-05-21 Nathan Sidwell <nathan@acm.org>
* c-c++-common/cpp/cmd-1.c: Delete.

View File

@ -7,7 +7,7 @@ struct a {
unsigned long long c;
};
class {
class my_class {
public:
a d;
} e;