Git Product home page Git Product logo

Comments (6)

jdolan avatar jdolan commented on September 26, 2024 1

Yes! Thanks.

from gtkradiant.

jdolan avatar jdolan commented on September 26, 2024

This is in my newish smooth camera movement code. Weird. gcc must be getting more strict.

I've opened a PR to address this here: #665

We may want to look at specifying a C language standard (-std=c99 or similar) so that this kind of syntax is supported.

from gtkradiant.

tkoeppe avatar tkoeppe commented on September 26, 2024

Hm, maybe this is a bug in GCC? See https://stackoverflow.com/a/56196014. C++ allows array-to-pointer conversion even on prvalues.

I don't think we want to compile a .cpp file as C99.

from gtkradiant.

jdolan avatar jdolan commented on September 26, 2024

Why not? It'd be fun.

from gtkradiant.

ensiform avatar ensiform commented on September 26, 2024

According to some answers here it is indeed a quirk of gcc that makes this not work, but clang and modern msvc accept it.

https://stackoverflow.com/questions/32941846/c-error-taking-address-of-temporary-array#32941939

from gtkradiant.

illwieckz avatar illwieckz commented on September 26, 2024

@jdolan since #665 is merged, do you believe this issue be closed?

from gtkradiant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.