Re: C++ PATCH to implement C++17 maybe_unused attribute

2016-04-26 Thread Jason Merrill
Fixed. Jason On Tue, Apr 26, 2016 at 5:46 AM, Andreas Schwab wrote: > /usr/local/gcc/gcc-20160426/gcc/testsuite/c-c++-common/cpp/pr63831-1.c:5:14: > error: size of array 'T1' is negative > /usr/local/gcc/gcc-20160426/gcc/testsuite/c-c++-common/cpp/pr63831-1.c:13:14: > error: size of array 'T5

Re: C++ PATCH to implement C++17 maybe_unused attribute

2016-04-26 Thread Andreas Schwab
/usr/local/gcc/gcc-20160426/gcc/testsuite/c-c++-common/cpp/pr63831-1.c:5:14: error: size of array 'T1' is negative /usr/local/gcc/gcc-20160426/gcc/testsuite/c-c++-common/cpp/pr63831-1.c:13:14: error: size of array 'T5' is negative /usr/local/gcc/gcc-20160426/gcc/testsuite/c-c++-common/cpp/pr63831

C++ PATCH to implement C++17 maybe_unused attribute

2016-04-25 Thread Jason Merrill
The C++17 maybe_unused attribute is mostly equivalent to the GNU unused attribute, except that it can also be applied to enumerators. I was surprised to see that there currently isn't a table of C++ standard attributes; all the standard attributes we already support are handled by translating