Source: llvm-toolchain-18
Version: 1:18.1.5-2
Severity: serious
X-Debbugs-Cc: sramac...@debian.org

https://ci.debian.net/packages/l/llvm-toolchain-18/testing/amd64/46304375/#S6

150s # Builds the test application
150s clang++-$VERSION -std=c++20 \
150s    -nostdinc++ \
150s    -isystem /usr/lib/llvm-$VERSION/include/c++/v1/ \
150s    -L /usr/lib/llvm-$VERSION/lib \
150s    -fmodule-file=std=std.pcm \
150s    -fmodule-file=std.compat=std.compat.pcm \
150s    std.pcm \
150s    std.compat.pcm \
150s    -lc++ \
150s    foo.cpp
151s 
151s # Runs the test application
151s # The output should be
151s #   Hello modular world
151s #   Hello compat modular world
151s ./a.out
151s Hello modular world
151s Hello compat modular world
151s 
151s if test ! -f /usr/lib/llvm-$VERSION/include/cxxabi.h; then
151s     echo "Install libc++abi-$VERSION-dev";
151s     exit -1;
151s fi
151s 
151s # Force the usage of libc++abi
151s clang++-$VERSION -stdlib=libc++ -lc++abi foo.cpp -o o
151s foo.cpp:1:1: error: unknown type name 'import'
151s     1 | import std;
151s       | ^
151s foo.cpp:2:1: error: unknown type name 'import'
151s     2 | import std.compat;
151s       | ^
151s foo.cpp:2:11: error: expected ';' after top level declarator
151s     2 | import std.compat;
151s       |           ^
151s       |           ;
151s foo.cpp:5:3: error: 'std' is not a class, namespace, or enumeration
151s     5 |   std::cout << "Hello modular world\n";
151s       |   ^
151s foo.cpp:2:8: note: 'std' declared here
151s     2 | import std.compat;
151s       |        ^
151s foo.cpp:6:5: error: no 
member named 'printf' in the global namespace
151s     6 |   ::printf("Hello compat modular world\n");
151s       |   ~~^
151s 5 errors generated.
151s autopkgtest [23:36:28]: test command1: -----------------------]

Cheers

-- 
Sebastian Ramacher

Reply via email to