Closed Bug 1446034 Opened 7 years ago Closed 7 years ago

GLContext.h: "function uses ‘auto’ type specifier without trailing return type"

Categories

(Thunderbird :: Build Config, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: 52qtuqm9, Unassigned)

Details

Trying to build Thunderbird from current Trunk on Ubuntu 17.10: In file included from /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContextGLX.h:10:0, from /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContextProviderGLX.cpp:33: /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContext.h:3635:23: error: ‘MaxSamples’ function uses ‘auto’ type specifier without trailing return type auto MaxSamples() const { return uint32_t(mMaxSamples); } ^~~~~ /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContext.h:3635:23: note: deduced return type only available with -std=c++14 or -std=gnu++14 /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContext.h:3636:27: error: ‘MaxTextureSize’ function uses ‘auto’ type specifier without trailing return type auto MaxTextureSize() const { return uint32_t(mMaxTextureSize); } ^~~~~ /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContext.h:3636:27: note: deduced return type only available with -std=c++14 or -std=gnu++14 /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContext.h:3637:32: error: ‘MaxRenderbufferSize’ function uses ‘auto’ type specifier without trailing return type auto MaxRenderbufferSize() const { return uint32_t(mMaxRenderbufferSize); } ^~~~~ /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContext.h:3637:32: note: deduced return type only available with -std=c++14 or -std=gnu++14 /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContext.h:3638:27: error: ‘MaxTexOrRbSize’ function uses ‘auto’ type specifier without trailing return type auto MaxTexOrRbSize() const { return mMaxTexOrRbSize; } ^~~~~ /home/jik/build/thunderbird/comm-central/mozilla/gfx/gl/GLContext.h:3638:27: note: deduced return type only available with -std=c++14 or -std=gnu++14 /home/jik/build/thunderbird/comm-central/mozilla/config/rules.mk:1045: recipe for target 'GLContextProviderGLX.o' failed make[4]: *** [GLContextProviderGLX.o] Error 1 Filing under Thunderbird because I don't know how to tell whether this is a Thunderbird-specific build issue or a M-C build issue. Please refile as appropriate. Thanks.
Sorry, rebuilding from scratch fixed this.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.