Skip to content

Directly assigning a value to a String causes a compilation error #3067

Description

@sunnyguhz

The following expression compiles successfully in the older 2.X.X versions, but triggers a compilation error in the latest 3.0.0 version.

Win11 25H2
Arduino 2.3.10
Debug symbols and core logs:"None"
Optimize:"Smallest (-OS) with LTO"
Board part number:"Generic G030F6Px"
U(S)ART support:"Enabled (generic ‘Serial’)"
"Optimize for debug" is not checked.

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  String LCDshowinfo;
  LCDshowinfo = 60 * 60;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions