[Bug c++/99569] New: segfault when running a module

2021-03-12 Thread ryan.burn at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Here's how to reproduce // a-m.cc module; #include export module a; export std::string do_a() { return "abc"; } // main.cc #include import a; int main() {

[Bug c++/99543] ICE module compilation ../../gcc/toplev.c:327

2021-03-12 Thread ryan.burn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99543 ryan.burn at gmail dot com changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug c++/99543] ICE module compilation ../../gcc/toplev.c:327

2021-03-12 Thread ryan.burn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99543 --- Comment #2 from ryan.burn at gmail dot com --- it worked with root@15a43977d8e1:/t/hdr-mod# g++ --version g++ (GCC) 11.0.1 20210311 (experimental) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source

[Bug c++/99568] New: ICE when compiling basic module: internal compiler error: in module_may_redeclare, at cp/module.cc:18453

2021-03-12 Thread ryan.burn at gmail dot com via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Here's how to reproduce /// say_hello.cc module; #include #include export module Hello

[Bug c++/99543] New: ICE module compilation ../../gcc/toplev.c:327

2021-03-10 Thread ryan.burn at gmail dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Here is the stacktrace. It happened when I tried to compile a header module that imported another header module: // a.h import ; SUBCOMMAND: # //example/header

[Bug c++/99541] New: ICE when reading a module

2021-03-10 Thread ryan.burn at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Backtrace bazel-out/k8-opt-exec-2B5CBBC6/bin/util/process_wrapper/process_wrapper -- /usr/local/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap

[Bug c/98267] New: internal compiler error: verify_ssa failed

2020-12-13 Thread ryan.burn at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Compiling valgrind-3.16.1 fails with the error message below using the latest version of gcc. gcc --version root@929ac6d10aed:/valgrind/valgrind-3.16.1# gcc --version gcc (GCC

[Bug libgcc/86215] New: Exceptions are broken on OSX when linking with -static-libgcc

2018-06-19 Thread ryan.burn at gmail dot com
Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- If I compile program below with g++-7 main.cpp -static-libgcc -static-libstdc++ and run it on OSX, I get $ ./a.out Abort trap: 6 $ echo

[Bug c++/82380] New: [concepts] Error when using requires constraint with attributes

2017-09-30 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- I believe the below code should work but it gives me the error: main.cpp:6:1: error: two consecutive '[' shall only introduce

[Bug c++/81366] New: pragma omp simd reduce(max:m) not vectorizing

2017-07-09 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Compiling this code: ### double max(double* x, int n) { double m = 0; int i; #pragma omp simd linear (i) reduction

[Bug middle-end/81052] ICE in verify_dominators, at dominance.c:1184

2017-06-12 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81052 --- Comment #3 from ryan.burn at gmail dot com --- The only other gcc I have installed is g++ (GCC) 7.0.1 20170408 (experimental) Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions

[Bug middle-end/81052] ICE in verify_dominators, at dominance.c:1184

2017-06-12 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81052 --- Comment #2 from ryan.burn at gmail dot com --- Created attachment 41538 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41538=edit old compiler preprocessed

[Bug c++/81052] New: ICE in verify_dominators, at dominance.c:1184

2017-06-10 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 41535 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41535=edit preprocessed code Using gcc: g++ (GCC) 8.0.0 20170610 (experimental) Copyright (C) 2

[Bug c++/80967] ICE in tsubst_decomp_names, at cp/pt.c:15660

2017-06-04 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80967 --- Comment #2 from ryan.burn at gmail dot com --- That's built from trunk only less than 2 months ago. Are you certain this is invalid? Did you actually try to reproduce?

[Bug c++/80967] New: ICE in tsubst_decomp_names, at cp/pt.c:15660

2017-06-03 Thread ryan.burn at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 41466 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41466=edit preprocessed code Running with trunk: g++ (GCC) 7.0.1 20170408 (experimen

[Bug c++/80637] New: [concepts] incorrect ambiguous overload

2017-05-04 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- This code won't compile with GCC / template struct A { void f() requires std::is_same_v<T, int> { }

[Bug c++/78073] New: inherited initializer_list constructor is not accessible

2016-10-21 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code should compile but gives this error with g++ built from trunk (20161022). main.cpp: In function ‘int main()’: main.cpp:12:13: error

[Bug c++/77811] New: [concepts] invalid redefinition error when declaring friend function

2016-09-30 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code should be valid but gives this error when compiling with gcc (7.0.0 201609) prog.cc: In instantiation of 'struct B

[Bug c++/71209] New: [c++] erroneous 'is not a base class of' error

2016-05-19 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code compiles fine with clang and a version of gcc build from trunk on 20160428, but with the trunk version from 20160519, it gives this bad error message: B::B

[Bug c++/70862] [concepts] adding a concept-constrained version of a variable template causes multiple definition assembler error

2016-05-15 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70862 --- Comment #3 from ryan.burn at gmail dot com --- It's a different bug. The test case from 70095 compiles fine with the trunk from 20160428, but the above example won't.

[Bug c++/63142] gcc-cilk can not spawn a function template

2016-04-28 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63142 ryan.burn at gmail dot com changed: What|Removed |Added CC||ryan.burn at gmail dot com

[Bug other/69582] [meta-bug] Cilk+

2016-04-28 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69582 --- Comment #6 from ryan.burn at gmail dot com --- There's also some issues with cilk features and precompiled headers. I put in 70865 to track.

[Bug c++/70865] New: [cilkplus] errors when using cilk features with precompiled headers

2016-04-28 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 38372 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38372=edit example that reproduces the problem Using c

[Bug middle-end/65960] ICE in Cilk spawn with argument with non-trivial constructor

2016-04-28 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65960 ryan.burn at gmail dot com changed: What|Removed |Added CC||ryan.burn at gmail dot com

[Bug c++/70862] [concepts] adding a concept-constrained version of a variable template causes multiple definition assembler error

2016-04-28 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70862 --- Comment #1 from ryan.burn at gmail dot com --- Simpler reproduction: template concept bool C = true; template constexpr bool a = false; template requires C constexpr bool a = true; template requires a void f(Tx...) { } int main

[Bug c++/70862] New: [concepts] adding a concept-constrained version of a variable template causes multiple definition assembler error

2016-04-28 Thread ryan.burn at gmail dot com
: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 38369 --> https://gcc.gnu.org/bugzi

[Bug other/69582] [meta-bug] Cilk+

2016-02-11 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69582 --- Comment #5 from ryan.burn at gmail dot com --- My copyright assignment should be set up now. Thanks.

[Bug other/69582] [meta-bug] Cilk+

2016-02-04 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69582 ryan.burn at gmail dot com changed: What|Removed |Added CC||ryan.burn at gmail dot com

[Bug c++/69362] New: ICE when doing a pragma reduction with the wrong variable

2016-01-19 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code when compiled with -fcilkplus gives the following ICE: main.cpp: In function ‘double t1(double*, int)’: main.cpp:4:3: internal

[Bug c++/69364] New: [concepts] failure to properly order constraints when using fold expressions

2016-01-19 Thread ryan.burn at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code produces an ambiguous overload error. I'm not completely sure if the concept-lite standard dictates

[Bug c++/69363] New: ICE when doing a pragma simd reduction with max

2016-01-19 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code causes this ICE: rnburn@localhost ~/test/cilk_reduction $ /usr/local/experimental/bin/g++ -fcilkplus -O3 -march=native -c -S bug.cpp bug.cpp: In function

[Bug c++/69267] New: [cilkplus] ICE when calling a function with an empty class as an argument

2016-01-13 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code generates this ICE: prog.cc: In function 'void g()': prog.cc:6:21: internal compiler error: in gimplify_expr

[Bug c++/69091] New: valid code with operator| causes ICE "tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:12851"

2015-12-30 Thread ryan.burn at gmail dot com
Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code compiles fine with clang but cause

[Bug c++/69048] New: [cilkplus] bug when spawning a function that returns a type with a destructor

2015-12-24 Thread ryan.burn at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code generates this ICE: In function ‘’: cc1plus: internal compiler error: in verify_gimple_stmt, at tree-cfg.c

[Bug c++/69021] New: [cilkplus] valid cilk_spawn won't compile when invoking non-trivial assignment operator

2015-12-22 Thread ryan.burn at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code gives this error but should compile: prog.cc: In function 'void g()': prog.cc:12:21: error: invalid

[Bug c++/69024] New: [cilkpus] cilk_spawn is broken for initializations with implicit conversion operators defined

2015-12-22 Thread ryan.burn at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The following code should compile but gives this error: implicit_cast.cpp: In function ‘void g

[Bug c++/69017] New: [cilkplus] ICE with valid cilk_spawn

2015-12-22 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below valid code causes this ICE: t1.cpp: In function ‘void g()’: t1.cpp:18:22: internal compiler error: gimplification failed b = _Cilk_spawn f2

[Bug c++/69017] [cilkplus] ICE with valid cilk_spawn

2015-12-22 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69017 --- Comment #1 from ryan.burn at gmail dot com --- Better example: struct B { }; B f() { return

[Bug c++/68997] New: [cilkplus] cilk_spawn is broken for functions that return a type with a custom copy or move constructor

2015-12-20 Thread ryan.burn at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code should be valid but gives this error: main.cpp: In function ‘void compute_cilk

[Bug c++/68985] New: braced initializer bug when defining a static constexpr int within a class

2015-12-18 Thread ryan.burn at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The follow code compiles fine with clang (http://melpon.org/wandbox/permlink/VNNQJW7whi3CmEKH) but gives this error with gcc

[Bug c++/68429] [concepts] ICE in in placeholder_extract_concept_and_args, at cp/constraint.cc:1401

2015-12-07 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68429 --- Comment #1 from ryan.burn at gmail dot com --- Additional case. (not sure if it's the same bug) namespace std { typedef int size_t

[Bug c++/68683] [concepts] function satisfy_argument_deduction_constraint modifies a type tree node but leaves TYPE_CANONICAL unchanged

2015-12-07 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68683 ryan.burn at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug c++/68719] New: [concepts] placeholder deduction doesn't work for member functions

2015-12-05 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code should compile but gives this error with gcc 20151123: main.cpp: In function ‘int main()’: main.cpp:7:3: error: expected

[Bug c++/68731] New: [concepts] ICE when referencing struct type in specialization

2015-12-05 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code segfaults with g++ 20151123 /// template struct a_type

[Bug c++/68434] [concepts] ICE: same canonical type node for different types

2015-12-03 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68434 --- Comment #5 from ryan.burn at gmail dot com --- reduction for the other test case: template <typename, typename> struct i

[Bug c++/68434] [concepts] function tsubst sets TYPE_CANONICAL before setting a type's PLACEHOLDER_TYPE_CONSTRAINTS

2015-12-03 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68434 ryan.burn at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug c++/68290] g++.dg/concepts/auto1.C FAILs

2015-12-03 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68290 Bug 68290 depends on bug 68434, which changed state. Bug 68434 Summary: [concepts] function tsubst sets TYPE_CANONICAL before setting a type's PLACEHOLDER_TYPE_CONSTRAINTS https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68434 What

[Bug c++/67491] [meta-bug] concepts issues

2015-12-03 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 68434, which changed state. Bug 68434 Summary: [concepts] function tsubst sets TYPE_CANONICAL before setting a type's PLACEHOLDER_TYPE_CONSTRAINTS https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68434 What

[Bug c++/68683] New: [concepts] function satisfy_argument_deduction_constraint modifies a type tree node but leaves TYPE_CANONICAL unchanged

2015-12-03 Thread ryan.burn at gmail dot com
Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code causes a "same canonical type node for diff

[Bug c++/68608] New: [concepts] ICE with with explicit class instantiation

2015-11-29 Thread ryan.burn at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code causes this ICE when compiled with rnburn@localhost ~/test/explicit_concept $ g++17 --version g++ (GCC) 6.0.0 20151123 (experimental) Copyright (C) 2015

[Bug c++/68597] ice inin check_return_expr, at cp/typeck.c:8635

2015-11-28 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68597 --- Comment #1 from ryan.burn at gmail dot com --- This looks similar to 67846, but the fix from that bug was already put in and I verified its test case works.

[Bug c++/68597] New: ice inin check_return_expr, at cp/typeck.c:8635

2015-11-28 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Below code causes this stack trace when compiled with -std=c++1z when compiled with rnburn@localhost ~/bugs/lambda_check_return $ g++17 --version g++ (GCC) 6.0.0 20151123

[Bug c++/68487] New: [concepts] bad "invalid reference to variadic concept" error

2015-11-22 Thread ryan.burn at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code should compile but it gives the error: main.cpp:7:15: error: invalid reference to function concept ‘template conste

[Bug c++/68464] ICE in valid constexpr function: ../../src/gcc/tree.c:11497

2015-11-21 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68464 ryan.burn at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug c++/68464] ICE in valid constexpr function: ../../src/gcc/tree.c:11497

2015-11-21 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68464 --- Comment #3 from ryan.burn at gmail dot com --- Also, the test case attached to 223901 compiles fine for me.

[Bug c++/68464] New: ICE in constexpr function: ../../src/gcc/tree.c:11497

2015-11-20 Thread ryan.burn at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code produces this ICE: rnburn@localhost ~/bugs/constexprice $ g++ -std=c++1z main.cpp main.cpp: In function ‘constexpr std::array<double, 3ul> f(in

[Bug c++/68396] function auto-deduced return types get incorrectly classified as parameter packs

2015-11-20 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68396 ryan.burn at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug c++/68434] New: [concepts] ICE same canonical type node for different types

2015-11-19 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The code below generates this ICE when compiled with g++ (GCC) 6.0.0 20151118 (experimental) constexpr bool C1() constexpr bool C2

[Bug c++/68429] New: [concepts] ICE in in placeholder_extract_concept_and_args, at cp/constraint.cc:1401

2015-11-18 Thread ryan.burn at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code causes this ICE: bug.cpp: In function ‘int main()’: bug.cpp:19:8: internal compiler

[Bug c++/68387] New: [c++1z] gcc hangs forever on this code

2015-11-17 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36740 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36740=edit preprocessed code The attached code causes gcc to hang forever.

[Bug c++/68388] New: incomplete type bug when using decltype

2015-11-17 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code compiles fine with clang (http://melpon.org/wandbox/permlink/Rm6dpbmC0N3eMJJa) and earlier versions of gcc-6, but was recently broken. Gcc gives this error when

[Bug c++/68396] bug with parameter pack expansion

2015-11-17 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68396 --- Comment #1 from ryan.burn at gmail dot com --- It looks like this was caused with the commit "Handle auto parameter packs." (https://github.com/gcc-mirror/gcc/commit/018c146eec4143116f7f422239d56eb4047

[Bug c++/68395] [concepts] segfault in valid code

2015-11-17 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68395 --- Comment #1 from ryan.burn at gmail dot com --- Created attachment 36745 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36745=edit preprocessed code

[Bug c++/68396] New: bug with parameter pack expansion

2015-11-17 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- This valid code below worked until recently with gcc-6. The latest version of gcc-6 gives the incorrect error: bug2.cpp: In function ‘auto make_dimensionality_impl()’: bug2.cpp:7:17: error

[Bug c++/68395] New: [concepts] segfault in valid code

2015-11-17 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The attached code compiles with an earlier version of gcc-6 but now it segfaults with the following stack trace: bug5.cpp: In instantiation of ‘constexpr const bool htl::detail_concept

[Bug c++/68394] New: [concepts] segfault in valid code

2015-11-17 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36744 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36744=edit preprocessed code The attached code compiles with an earlier version of gcc-6 but now it segfau

[Bug c++/68377] New: [c++1z] "binary expression in operand of fold-expression" error when folding an expression

2015-11-16 Thread ryan.burn at gmail dot com
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The following code gives the error "binary expression in operand of

[Bug c++/68085] New: bug when using anonymous structs in function

2015-10-24 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The following code compiles fine with clang and EDG, but gives this error with g++ -std=c++1z: main.cpp: In function ‘auto make(int)’: main.cpp:5:17: error: declaration of ‘int

[Bug c++/68045] New: [concepts] segfault in contains_struct_check ../../gcc/gcc/tree.h:2971

2015-10-21 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36560 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36560=edit preprocessed code The attached code gi

[Bug target/66326] Floating point exception with -mfpmath=387 and -fcilkplus.

2015-10-21 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66326 ryan.burn at gmail dot com changed: What|Removed |Added CC||ryan.burn at gmail dot com

[Bug c++/68001] New: [cilkplus] ICE in cp_gimplify_expr, at cp/cp-gimplify.c:760

2015-10-17 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code causes the following ICE rnburn@localhost ~/test/gcc_cilk $ c++17 -fcilkplus -lcilkrts t.cpp t.cpp: In function ‘void

[Bug c++/67969] [concepts] bug with overloaded function when using constraints

2015-10-14 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67969 --- Comment #1 from ryan.burn at gmail dot com --- Reduced further: emplate <class, class> class NumericArray {}; template constexpr bool match_numeric_array = false; template constexpr bool match_numeric_array<NumericArray<S

[Bug c++/67969] New: [concepts] bug with overloaded function when using constraints

2015-10-14 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36514 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36514=edit code The attached code contains these

[Bug c++/67970] New: [concepts] variable template bug

2015-10-14 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code should compile, but I get this error: bug.cpp: In function ‘int main()’: bug.cpp:29:13: error: the value of ‘match_numeric_array’ is not usable in a constant expression

[Bug c++/67901] New: [concepts] overloading bug when considered more specialized vs more constrained

2015-10-08 Thread ryan.burn at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- I think the below code should compile. >From section 14.6.6.2: Partial ordering selects which of two function templa

[Bug c++/67878] New: [concepts] when processing a valid concept check, gcc errors trying to expand variadic in unrelated code

2015-10-06 Thread ryan.burn at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code should be valid, but gcc gives the following error, which references a completely

[Bug c++/67862] New: [concepts] ICE in tsubst, at cp/pt.c:12625

2015-10-05 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36447 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36447=edit preprocessed code the attached code gives this trace: rnburn@localhost ~/bugs/tsubst_

[Bug c++/67860] New: [concepts] bug with overloaded, refined function with explicit and variadic template arguments

2015-10-05 Thread ryan.burn at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Gcc gives this error compiling the below code. But function v1 is more specialized than v2 so there should

[Bug c++/67835] New: bug with auto-deduced return type and functions invoked via ADL

2015-10-03 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code compiles fine with clang and EDG (intel's compiler) but gives this error with gcc: t.cpp: In instantiation of ‘auto g(Tag, T

[Bug c++/67825] New: [concepts] expression constraint bug when taking address of a member function

2015-10-02 Thread ryan.burn at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code prints 1 but ::operator() is an invalid expression so it should print 0

[Bug c++/67823] New: ICE in tsubst_copy, at cp/pt.c:13635

2015-10-02 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36439 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36439=edit preprocessed code the attached code produces this ICE when compiled with -std=c++1z: home/rnb

[Bug c++/67774] New: [concepts] ICE when mismatching template arguments to concept

2015-09-29 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Below code produces this ICE: t.cpp: In function ‘int main()’: t.cpp:21:16: error: wrong number of template arguments (1, should be 2) std

[Bug c++/67775] New: [concepts] bug when using variadic expansions in compound requirements

2015-09-29 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code prints 0, but it should print 1. / #include

[Bug c++/67737] ICE in make_decl_rtl, at varasm.c:1299

2015-09-28 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67737 ryan.burn at gmail dot com changed: What|Removed |Added Attachment #36403|0 |1 is obsolete

[Bug c++/67737] ICE in make_decl_rtl, at varasm.c:1299

2015-09-28 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67737 ryan.burn at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug c++/67737] ICE in make_decl_rtl, at varasm.c:1299

2015-09-28 Thread ryan.burn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67737 --- Comment #4 from ryan.burn at gmail dot com --- yes, sorry. I attached the wrong file.

[Bug c++/67737] New: ICE in make_decl_rtl, at varasm.c:1299

2015-09-27 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36403 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36403=edit preprocessed code Here's the stack trace I get when compiling the attached file with -st

[Bug c++/67727] New: [concepts] parameterized constraint not being checked for unused variables

2015-09-26 Thread ryan.burn at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The following code prints 1 1, but according to http://stackoverflow.com/questions/32801326/in-requires-parameter-lists-can-you

[Bug c++/67719] New: [concepts] bug with concepts using logical or

2015-09-25 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- This code fails to compile but should. It gives the following error: main.cpp: In function ‘int main()’: main.cpp:11:15: error: template constraint failure Ax<int, l

[Bug c++/67720] New: [concepts] bug with recursive constrained function

2015-09-25 Thread ryan.burn at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code is valid but gives this error with gcc: main.cpp: In instantiation of ‘auto f(const std::tuple<_El0, _El ...>&) requires predicate((cpt_BooleanFal

[Bug c++/67704] New: [concepts] requirements not being applied to aliases

2015-09-24 Thread ryan.burn at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- I think the below code should compile: the first version of "f" should trigger SFINAE but the second version should match so that the program prints 2. But i

[Bug c++/67697] New: [concepts] ICE when using non-constexpr in requires expression

2015-09-23 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The following code causes an ICE: // template concept bool C() { return requires(X x, bool b

[Bug c++/67684] New: [concepts] friend access not working with constrained function

2015-09-22 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The following code fails to compile with g++ (GCC) 6.0.0 20150915 (experimental) / template class

[Bug c++/67692] New: [concepts] ICE when using requires in non-concept contexts

2015-09-22 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The below code produces an ICE compiling with -std=c++1z: template bool f(T x) { return requires(T x

[Bug c++/67686] New: [concepts] segfault in finish_call_expr function

2015-09-22 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36372 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36372=edit preprocessed code The attached code causes a segfault with gcc 6.0 when compil

[Bug c++/67654] New: [concepts] ICE when using concepts in constexpr function

2015-09-20 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36353 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36353=edit reproduces problem My version of gcc: g++ (GCC) 6.

[Bug c++/67656] New: [concepts] matched variadics in expression constraint report as unmatched

2015-09-20 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- In this code / template void consume

[Bug c++/67655] New: [concepts] expression constraints and variadic expansions

2015-09-20 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- I expect the following should be valid code: ### BEGIN CODE template void

[Bug c++/67658] New: [concepts] invalid code with constrained concepts compiles

2015-09-20 Thread ryan.burn at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- This code compiles with gcc g++ (GCC) 6.0.0 20150915 (experimental) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see

[Bug c++/67641] New: gcc segfaults when compiling in debug mode

2015-09-19 Thread ryan.burn at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36350 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36350=edit files to reproduce The below steps cause gcc to segfault when building with a rec

  1   2   >