[Bug rust/113461] New: [14 Regression] rust-proc-macro.cc:174:15: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Werror=format=]
danglin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 17 22:50:03 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113461
Bug ID: 113461
Summary: [14 Regression] rust-proc-macro.cc:174:15: error:
format '%lu' expects argument of type 'long unsigned
int', but argument 3 has type 'long long unsigned int'
[-Werror=format=]
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rust
Assignee: unassigned at gcc dot gnu.org
Reporter: danglin at gcc dot gnu.org
CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org
Target Milestone: ---
Host: hppa*-*-linux*
Target: hppa*-*-linux*
Build: hppa*-*-linux*
/home/dave/gnu/gcc/objdir/./prev-gcc/xg++
-B/home/dave/gnu/gcc/objdir/./prev-gcc
/ -B/home/dave/opt/gnu/gcc/gcc-14/hppa-linux-gnu/bin/ -nostdinc++
-B/home/dave/g
nu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs
-B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu
-I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-PIE -c -DIN_GCC_FRONTEND -g -O2 -fno-checking -DIN_GCC -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -Wno-unused-parameter -DHAVE_CONFIG_H
-fno-PIE -I. -Irust -I../../gcc/gcc -I../../gcc/gcc/rust
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I../../gcc/gcc/../libcody -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc/gcc/../libbacktrace -o rust/rust-macro-invoc-lexer.o -MT
rust/rust-macro-invoc-lexer.o -MMD -MP -MF
rust/.deps/rust-macro-invoc-lexer.TPo -g -O2 -fno-checking -I
../../gcc/gcc/rust -I ../../gcc/gcc/rust/lex -I ../../gcc/gcc/rust/parse -I
../../gcc/gcc/rust/ast -I ../../gcc/gcc/rust/analysis -I
../../gcc/gcc/rust/backend -I ../../gcc/gcc/rust/expand -I
../../gcc/gcc/rust/hir/tree -I ../../gcc/gcc/rust/hir -I
../../gcc/gcc/rust/resolve -I ../../gcc/gcc/rust/util -I
../../gcc/gcc/rust/typecheck -I ../../gcc/gcc/rust/checks/lints -I
../../gcc/gcc/rust/checks/errors -I ../../gcc/gcc/rust/checks/errors/privacy -I
../../gcc/gcc/rust/checks/errors/borrowck -I ../../gcc/gcc/rust/util -I
../../gcc/gcc/rust/metadata -I ../../gcc/gcc/../libgrust
../../gcc/gcc/rust/expand/rust-macro-invoc-lexer.cc
In file included from ../../gcc/gcc/rust/expand/rust-proc-macro.cc:18:
../../gcc/gcc/rust/expand/rust-proc-macro.cc: In function 'const
std::vector<ProcMacro::Procmacro> Rust::load_macros(std::string)':
../../gcc/gcc/rust/expand/rust-proc-macro.cc:174:15: error: format '%lu'
expects argument of type 'long unsigned int', but argument 3 has type 'long
long unsigned int' [-Werror=format=]
174 | rust_debug ("Found %lu procedural macros", array->length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
| |
| long long unsigned
int
../../gcc/gcc/rust/rust-diagnostics.h:305:57: note: in definition of macro
'rust_debug'
305 | #define rust_debug(...) rust_debug_loc (UNDEF_LOCATION, __VA_ARGS__)
| ^~~~~~~~~~~
../../gcc/gcc/rust/expand/rust-proc-macro.cc:174:24: note: format string is
defined here
174 | rust_debug ("Found %lu procedural macros", array->length);
| ~~^
| |
| long unsigned int
| %llu
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gcc-rust
mailing list