From: Martin Liska Date: Thu, 21 May 2020 12:21:31 +0000 (+0200) Subject: Fix a test-case warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f20c7040f884b542cadf46fd77188729ab3cb17;p=gcc.git 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 --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;