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


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

Re: typedef structures broken

From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c++
Subject Re: typedef structures broken
Date 2023-07-22 03:45 -0700
Organization None to speak of
Message-ID <87wmysmdhp.fsf@nosuchdomain.example.com> (permalink)
References <222d1ba1-131d-4d6a-89f6-ddbd2082db01n@googlegroups.com>

Show all headers | 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