[Bug 285195] devel/llvm15: FLANG -Wmissing-template-arg-list-after-template-kw SCALE(y)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Mar 2025 13:08:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285195
Bug ID: 285195
Summary: devel/llvm15: FLANG
-Wmissing-template-arg-list-after-template-kw SCALE(y)
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: brooks@FreeBSD.org
Reporter: milios@ccsys.com
Assignee: brooks@FreeBSD.org
Flags: maintainer-feedback?(brooks@FreeBSD.org)
fyi i had to disable FLANG in order to avoid this error compiling with
13.5-RC1/amd64. its out of my depth. my dependency was misc/py-pytorch@py311
and i'm not sure if it is concerned with FLANG support
FAILED:
tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/fold-real.cpp.o
/usr/bin/c++ -DFLANG_LITTLE_ENDIAN=1 -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/usr/ports/devel/llvm15/work-default/.build/tools/flang/lib/Evaluate
-I/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Evaluate
-I/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include
-I/usr/ports/devel/llvm15/work-default/.build/tools/flang/include
-I/usr/ports/devel/llvm15/work-default/.build/include
-I/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/llvm/include
-isystem
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/llvm/../mlir/include
-isystem /usr/ports/devel/llvm15/work-default/.build/tools/mlir/include
-isystem /usr/ports/devel/llvm15/work-default/.build/tools/clang/include
-isystem
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/llvm/../clang/include
-O2 -pipe -march=opteron-sse3 -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC
-fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
-Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
-Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
-Wmisleading-indentation -fdiagnostics-color -ffunction-sections
-fdata-sections -Wno-deprecated-copy -Wno-string-conversion
-Wno-unused-command-line-argument -Wstring-conversion
-Wcovered-switch-default -Wno-nested-anon-types -O2 -pipe -march=opteron-sse3
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-isystem /usr/local/include -DNDEBUG -std=c++17 -fno-exceptions -MD -MT
tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/fold-real.cpp.o -MF
tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/fold-real.cpp.o.d
-o tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/fold-real.cpp.o
-c
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Evaluate/fold-real.cpp
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Evaluate/fold-real.cpp:9:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Evaluate/fold-implementation.h:12:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Evaluate/character.h:12:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include/flang/Evaluate/type.h:20:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include/flang/Evaluate/complex.h:13:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include/flang/Evaluate/real.h:13:
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include/flang/Evaluate/integer.h:310:32:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
310 | auto back{FROM::template ConvertSigned(result.value)};
| ^
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Evaluate/fold-real.cpp:106:22:
warning: variable 'z' set but not used [-Wunused-but-set-variable]
106 | } else if (auto *z{UnwrapExpr<Expr<SomeComplex>>(args[0])}) {
| ^
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Evaluate/fold-real.cpp:103:15:
warning: variable 'x' set but not used [-Wunused-but-set-variable]
103 | if (auto *x{UnwrapExpr<Expr<SomeReal>>(args[0])}) {
| ^
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Evaluate/fold-real.cpp:247:60:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
247 | SCALE(y)};
| ^
2 warnings and 2 errors generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/llvm15
--
You are receiving this mail because:
You are the assignee for the bug.