Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #91181

Re: typedef structures broken

Path csiph.com!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c++
Subject Re: typedef structures broken
Date Sat, 22 Jul 2023 03:45:06 -0700
Organization None to speak of
Lines 21
Message-ID <87wmysmdhp.fsf@nosuchdomain.example.com> (permalink)
References <222d1ba1-131d-4d6a-89f6-ddbd2082db01n@googlegroups.com>
MIME-Version 1.0
Content-Type text/plain
Injection-Info dont-email.me; posting-host="bdab44af2cb9f73f4bd721fa6db5fe3e"; logging-data="3978180"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XwGompFvusdsXuDQIx/WA"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock sha1:21kdqdBLez3fiBtzIocdmIYuHI8= sha1:6ARh0jYIjOs8+qlF4E9jwABoJJ0=
Xref csiph.com comp.lang.c++:91181

Show key headers only | View raw


Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
> Windows Visual C++ is now rejecting typedefed structures without tags.
>
> e.g the following code
>
> typedef struct
> {
>     double x;
>     double y;
> } Point;
>
> clang still accepts it.
>
> Anyone more information on this?

What's the error message?

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

typedef structures broken Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2023-07-22 01:21 -0700
  Re: typedef structures broken Bonita Montero <Bonita.Montero@gmail.com> - 2023-07-22 11:20 +0200
  Re: typedef structures broken Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2023-07-22 03:45 -0700
    Re: typedef structures broken Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2023-07-22 04:21 -0700
  Re: typedef structures broken David Brown <david.brown@hesbynett.no> - 2023-07-22 17:50 +0200
    Re: typedef structures broken Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2023-07-22 09:34 -0700

csiph-web