For ESP32, initialization of static object during declaration with derived class type doesn't work. #46335
Labels
area: C++
bug
The issue is a bug, or the PR is fixing a bug
platform: ESP32
Espressif ESP32
priority: low
Low impact/importance bug
1) Header file content Test_Code.h
2) Source file content Test_Code.cpp
CONFIG_CPLUSPLUS=y
CONFIG_MINIMAL_LIBC=y
CONFIG_MINIMAL_LIBC_MALLOC=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=16384
CONFIG_THREAD_NAME=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
To Reproduce
1. Build Test_Code.cpp with Zephyr v3.0.0 for nucleo_f429zi and esp32 board.
2. Connect putty with configuration ( 115200 baudrate, 8bit, Parity-none, 1Stop bit ) and observe output logs.
3. For nucleo_f429zi, you will get "m_abc_ptr initialized correctly" log.
4. For esp32, you will get Backtrace logs.
The text was updated successfully, but these errors were encountered: