https://gcc.gnu.org/g:94ef62343249079dd83104b15b4ebbebc25be129 commit 94ef62343249079dd83104b15b4ebbebc25be129 Author: Martin Liska Date: Thu May 21 14:21:31 2020 +0200 Fix a test-case warning. PR target/95229 * g++.target/i386/pr95229.C: Fix error: unnamed type with no linkage used to declare variable ā€˜ eā€™ with linkage with -std=gnu++98. Diff: --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/g++.target/i386/pr95229.C | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b8a4e52be6e..bcac1c657f3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2020-05-21 Martin Liska + + PR target/95229 + * g++.target/i386/pr95229.C: Fix + error: unnamed type with no linkage used + to declare variable ā€˜ eā€™ with linkage + with -std=gnu++98. + 2020-05-21 Nathan Sidwell * c-c++-common/cpp/cmd-1.c: Delete. diff --git a/gcc/testsuite/g++.target/i386/pr95229.C b/gcc/testsuite/g++.target/i386/pr95229.C index edf5aa4389e..98bdd57794c 100644 --- a/gcc/testsuite/g++.target/i386/pr95229.C +++ b/gcc/testsuite/g++.target/i386/pr95229.C @@ -7,7 +7,7 @@ struct a { unsigned long long c; }; -class { +class my_class { public: a d; } e;