https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93817
Bug ID: 93817 Summary: FAIL: g++.dg/diagnostic/array-init1.C -std=c++98 (test for errors, line 10) Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/h ome/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/test suite/g++.dg/diagnostic/array-init1.C -fno-diagnostics-show-caret -fno-diagnosti cs-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdin c++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-g nu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/ gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include /backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length= 0 -std=c++98 -pedantic-errors -Wno-long-long -S -o array-init1.s /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:8:3: error: conversion from 'long int' to 'A' is ambiguous /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:3:21: note: candidate: 'A::A(char*)' /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:3:12: note: candidate: 'A::A(int)' /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:9:3: error: invalid conversion from 'int*' to 'int' [-fpermissive] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:3:15: note: initializing argument 1 of 'A::A(int)' /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:10:23: erro r: conversion from 'unsigned int' to 'A' is ambiguous /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:3:21: note: candidate: 'A::A(char*)' /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:3:12: note: candidate: 'A::A(int)' compiler exited with status 1 PASS: g++.dg/diagnostic/array-init1.C -std=c++98 (test for errors, line 8) PASS: g++.dg/diagnostic/array-init1.C -std=c++98 (test for errors, line 9) FAIL: g++.dg/diagnostic/array-init1.C -std=c++98 (test for errors, line 10) FAIL: g++.dg/diagnostic/array-init1.C -std=c++98 (test for excess errors) Excess errors: /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/diagnostic/array-init1.C:10:23: error: conversion from 'unsigned int' to 'A' is ambiguous