[Bug 1823296] Re: g++ 7.3 and g++ 8.2 report segmentation fault

Matthias Klose doko at ubuntu.com
Sat Apr 6 10:10:55 UTC 2019


$ g++-7 -c test.ii 
test.ii:18:21: error: parameter '<anonymous>' includes reference to array of unknown bound 'const long int []'
   b(const long (&)[]);
                     ^
test.ii:23: confused by earlier errors, bailing out

$ g++-9 -c test.ii 
test.ii:23:16: error: call of overloaded 'b(<brace-enclosed initializer list>)' is ambiguous
   23 | blaspp<1> k({4})
      |                ^
test.ii:18:3: note: candidate: 'b::b<l, f, 0, f, baseclass<g, h, true, i>, j ...>::b(const long int (&)[]) [with l = double; long unsigned int f = 1; baseclass = a; int g = 0; int h = 1; i = void; j = {}]'
   18 |   b(const long (&)[]);
      |   ^
test.ii:17:3: note: candidate: 'b::b<l, f, 0, f, baseclass<g, h, true, i>, j ...>::b(long int) [with l = double; long unsigned int f = 1; baseclass = a; int g = 0; int h = 1; i = void; j = {}]'
   17 |   b(long);
      |   ^
test.ii:16:7: note: candidate: 'constexpr b::b<double, 1, 0, 1, a<0, 1, true, void> >::b(const b::b<double, 1, 0, 1, a<0, 1, true, void> >&)'
   16 | class b<l, f, 0, f, baseclass<g, h, true, i>, j...> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test.ii:16:7: note: candidate: 'constexpr b::b<double, 1, 0, 1, a<0, 1, true, void> >::b(b::b<double, 1, 0, 1, a<0, 1, true, void> >&&)'
test.ii:23:16: error: expected ',' or ';' at end of input
   23 | blaspp<1> k({4})
      |                ^


** Bug watch added: GCC Bugzilla #89994
   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89994

** Also affects: gcc via
   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89994
   Importance: Unknown
       Status: Unknown

** Changed in: gcc-7 (Ubuntu)
       Status: Incomplete => Confirmed

** Also affects: gcc-8 (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1823296

Title:
  g++ 7.3 and g++ 8.2 report segmentation fault

Status in gcc:
  Unknown
Status in gcc-7 package in Ubuntu:
  Confirmed
Status in gcc-8 package in Ubuntu:
  New

Bug description:
  Hello,
  I'm developing yet another c++ wrapper for BLAS libraries.
  I've received an internal error (segmentation fault) from g++ 7.3.0-27ubuntu1~18.04 and the same error from 8.2.0-1ubuntu2~18.04.

  The exact error text is:
  .......
  g++-8 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"test.d" -MT"test.o" -o "test.o" "../test.cpp"
  ../test.cpp: In function ‘void test_shape_creator()’:
  ../test.cpp:19:18: internal compiler error: Ошибка сегментирования
    blaspp<1> v({14});
                    ^
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
  .......

  Unfortunately, my code is enough complicated and probably does not
  have proper logic currently.

  I tried to simplify the code. But I failed to do it in a reasonable time. So I changed my code to bypass the issue.
  There are 2 big headers about 1000 rows each and two small cpp-files.
  I've read that you do not want such files.

  So, please inform me if you agree to work with my sources.

  gcc info:
  Using built-in specs.
  COLLECT_GCC=g++-8
  COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
  OFFLOAD_TARGET_NAMES=nvptx-none
  OFFLOAD_TARGET_DEFAULT=1
  Target: x86_64-linux-gnu
  Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-1ubuntu2~18.04' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
  Thread model: posix
  gcc version 8.2.0 (Ubuntu 8.2.0-1ubuntu2~18.04) 

  Ubuntu:
  Description:	Ubuntu 18.04.2 LTS
  Release:	18.04

  Best regards,
  Alexey

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1823296/+subscriptions



More information about the foundations-bugs mailing list