public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101168] New: gnu++14 complains about altivec types defined with using keyword in the same file with preprocessor macros
@ 2021-06-22 18:48 tuliom at ascii dot art.br
  2022-03-18  5:54 ` [Bug preprocessor/101168] " guojiufu at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tuliom at ascii dot art.br @ 2021-06-22 18:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101168

            Bug ID: 101168
           Summary: gnu++14 complains about altivec types defined with
                    using keyword in the same file with preprocessor
                    macros
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tuliom at ascii dot art.br
  Target Milestone: ---

Step to reproduce the error:

$ cat issue.cc 
#include <altivec.h>
using vdbl =  __vector double;

#define BREAK 1
$ g++ -std=gnu++14 -c issue.cc 
issue.cc:4:15: error: expected type-specifier before numeric constant
    4 | #define BREAK 1
      |               ^
issue.cc:4:9: note: in expansion of macro ‘BREAK’
    4 | #define BREAK 1
      |         ^~~~~

The error does not reproduce when using -std=c++14.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-26  7:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 18:48 [Bug c++/101168] New: gnu++14 complains about altivec types defined with using keyword in the same file with preprocessor macros tuliom at ascii dot art.br
2022-03-18  5:54 ` [Bug preprocessor/101168] " guojiufu at gcc dot gnu.org
2022-05-10  3:36 ` cvs-commit at gcc dot gnu.org
2022-05-12  2:53 ` guojiufu at gcc dot gnu.org
2024-03-26  6:59 ` pinskia at gcc dot gnu.org
2024-03-26  7:01 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).