Skip to content

[MSVC] Flutterfire failed due to warning C4238 on Windows with VS2026 #18698

Description

@QuellaZhang

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

No response

Which platforms are affected?

No response

Description

Hi All,

The MSVC team regularly builds popular open-source projects, including yours, with development versions of the build tools in order to find and fix regressions in the compiler and libraries before they can ship and cause trouble for the world. This also allows us to provide advance notice of breaking changes, which is the case here.

Flutterfire failed due to warning C4238 on Windows with VS2026. This is a new problem, could you please help take a look? Thanks in advance!

Reproducing the issue

1. Open VS2026 x64 CMD.
2. git clone https://github.com/firebase/flutterfire.git C:\gitP\firebase\flutterfire
3. cd C:\gitP\firebase\flutterfire
4. Download https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.41.3-stable.zip
5. set PATH=C:\gitP\firebase\flutterfire\tools\flutter\bin;%PATH%
6. dart pub cache clean --force
7. dart run melos bootstrap
8. cd /d C:\gitP\firebase\flutterfire\tests\windows\
9. flutter pub get

Firebase Core version

latest source code

Flutter Version

latest source code

Relevant Log Output

firebase_auth_plugin.cpp
C:\gitP\firebase\flutterfire\packages\firebase_auth\firebase_auth\example\windows\flutter\ephemeral\.plugin_symlinks\firebase_auth\windows\firebase_auth_plugin.cpp(821): error C2220: the following warning is treated as an error
C:\gitP\firebase\flutterfire\packages\firebase_auth\firebase_auth\example\windows\flutter\ephemeral\.plugin_symlinks\firebase_auth\windows\firebase_auth_plugin.cpp(821): warning C4238: nonstandard extension used: class rvalue used as lvalue
C:\gitP\firebase\flutterfire\packages\firebase_auth\firebase_auth\example\windows\flutter\ephemeral\.plugin_symlinks\firebase_auth\windows\firebase_auth_plugin.cpp(1022): warning C4238: nonstandard extension used: class rvalue used as lvalue
C:\gitP\firebase\flutterfire\packages\firebase_auth\firebase_auth\example\windows\flutter\ephemeral\.plugin_symlinks\firebase_auth\windows\firebase_auth_plugin.cpp(1066): warning C4238: nonstandard extension used: class rvalue used as lvalue

Flutter dependencies

Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

Build.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: customer-responseWaiting for customer response, e.g. more information was requested.platform: windowsIssues / PRs which are specifically for Windows.reproducedtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions