[Bug c++/80562] [7/8 Regression] ICE using if constexpr with nonconstant expression in function template

2017-06-20 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80562 Volker Reichelt changed: What|Removed |Added CC||reichelt at gcc dot gnu.org

[Bug c++/80971] [7/8 Regression] ICE with 'if constexpr' in template function

2017-06-20 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80971 Volker Reichelt changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/79650] [5/6/7/8 Regression] ICE on invalid c++ code with label arithmetic in convert_nontype_argument (pt.c:6515)

2017-06-11 Thread reichelt at gcc dot gnu.org
|NEW Last reconfirmed||2017-06-11 CC||reichelt at gcc dot gnu.org Summary|ICE on invalid c++ code |[5/6/7/8 Regression] ICE on |with -std=c++1z in |invalid c++ code

[Bug c++/81061] New: [7/8 Regression] ICE modifying read-only variable

2017-06-11 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid testcase triggers an ICE since GCC 7.1.0: === const int i = 0; void foo

[Bug c++/81060] New: [8 Regression] ICE with un-expanded parameter pack

2017-06-11 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid testcase triggers an ICE on trunk

[Bug c++/81057] New: [5/6/7/8 Regression] ICE with broken default template parameter

2017-06-11 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet (compiled with -std=c++11) triggers an ICE since GCC 5.1.0

[Bug c++/81055] New: [5/6/7/8 Regression] ICE with invalid initializer for array new

2017-06-11 Thread reichelt at gcc dot gnu.org
, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet (compiled with -std=c++0x) triggers an ICE since

[Bug c++/81054] New: [7/8 Regression] ICE with volatile variable in constexpr function

2017-06-11 Thread reichelt at gcc dot gnu.org
, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet (compiled with -std=c++1z) triggers an ICE

[Bug c++/81032] New: [5/6/7/8 Regression] ICE with lambda and broken constexpr

2017-06-08 Thread reichelt at gcc dot gnu.org
, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers an ICE since GCC 5.2.0 (when compiled

[Bug c++/81013] New: [7/8 Regression] ICE with invalid union in class hierarchy

2017-06-07 Thread reichelt at gcc dot gnu.org
, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers an ICE since GCC 7.1.0

[Bug c++/81011] New: [6/7/8 Regression] ICE with #pragma omp task and inaccessible copy-constructor

2017-06-07 Thread reichelt at gcc dot gnu.org
Keywords: error-recovery, ice-on-invalid-code, openmp Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers an ICE since

[Bug c++/70621] [6/7/8 Regression] ICE on invalid code at -O1 and above on x86_64-linux-gnu in record_reference, at cgraphbuild.c:64

2017-06-07 Thread reichelt at gcc dot gnu.org
||reichelt at gcc dot gnu.org --- Comment #10 from Volker Reichelt --- Here's an even simpler example that ICEs since GCC 4.9.0: = float foo(); struct A { static float x; }; double A::x = foo(); void bar() { A::x = 0

[Bug c++/81007] New: [7/8 Regression] ICE with virtual function in broken class

2017-06-07 Thread reichelt at gcc dot gnu.org
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid testcase triggers an ICE since GCC 7.1.0 (when compiled with -O2

[Bug c/81006] New: ICE with zero-size array and #pragma omp task depend

2017-06-07 Thread reichelt at gcc dot gnu.org
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following (valid?) testcase triggers an ICE since GCC 4.9.0 (when compiled with -fopenmp

[Bug c++/80991] New: ICE with __is_trivially_constructible in template

2017-06-06 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE since GCC 5.1.0

[Bug c++/80984] New: [5/6/7/8 Regression] ICE with label/variable ambiguity

2017-06-05 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE since GCC 5.1.0: === struct

[Bug c++/79056] [7/8 Regression] [C++17] ICE with broken deduction guide / broken template parameter

2017-06-05 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79056 Volker Reichelt changed: What|Removed |Added Keywords||error-recovery Last

[Bug c++/62207] [5/6/7/8 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c

2017-06-05 Thread reichelt at gcc dot gnu.org
-12-14 00:00:00 |2017-06-05 CC||reichelt at gcc dot gnu.org Summary|ICE: tree check: expected |[5/6/7/8 Regression] ICE: |tree that contains 'decl|tree check: expected tree |minimal' structure

[Bug sanitizer/80973] New: ICE with lambda and -fsanitize=undefined

2017-06-04 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot

[Bug c++/80972] New: [7/8 Regression] ICE with alignas and __attribute__((packed))

2017-06-04 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The testcase g++.dg/torture/pr80334.C triggers an ICE when compiled with -std=c++1z since GCC 7.1.0

[Bug c++/80971] New: [7/8 Regression] ICE with 'if constexpr' in template function

2017-06-04 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet (compiled with -std=c++1z) triggers an ICE since GCC 7.1.0

[Bug c/35443] [4.2/4.3/4.4 regression] Completely broken diagnostic with bind_expr

2017-05-09 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35443 Bug 35443 depends on bug 35441, which changed state. Bug 35441 Summary: pretty-printer cannot handle some expressions https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35441 What|Removed |Added

[Bug c/35442] [4.2/4.3/4.4 Regression] Completely broken diagnostic with view_convert_expr

2017-05-09 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35442 Bug 35442 depends on bug 35441, which changed state. Bug 35441 Summary: pretty-printer cannot handle some expressions https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35441 What|Removed |Added

[Bug c/35742] [4.3 regression] Broken diagnostic: 'goto_expr' not supported by pp_c_expression

2017-05-09 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35742 Bug 35742 depends on bug 35441, which changed state. Bug 35441 Summary: pretty-printer cannot handle some expressions https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35441 What|Removed |Added

[Bug c/35441] pretty-printer cannot handle some expressions

2017-05-09 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35441 Volker Reichelt changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/35441] pretty-printer cannot handle some expressions

2017-05-09 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35441 --- Comment #11 from Volker Reichelt --- Author: reichelt Date: Tue May 9 19:09:22 2017 New Revision: 247810 URL: https://gcc.gnu.org/viewcvs?rev=247810=gcc=rev Log: PR c/35441 * c-pretty-print.c (c_pretty_printer::expression):

[Bug translation/80280] Missing closing quote (%>) c/semantics.c and c/c-typeck.c

2017-05-07 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80280 --- Comment #4 from Volker Reichelt --- Author: reichelt Date: Sun May 7 19:41:09 2017 New Revision: 247728 URL: https://gcc.gnu.org/viewcvs?rev=247728=gcc=rev Log: PR translation/80280 * call.c (print_z_candidate): Fix

[Bug c++/79664] ICE with #pragma omp parallel in constexpr function

2017-05-07 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79664 Volker Reichelt changed: What|Removed |Added Known to work||6.3.1, 7.1.0 Target Milestone|---

[Bug c++/79681] [6 Regression] ICE with constexpr and bitfield

2017-05-07 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681 Volker Reichelt changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug c++/79639] [6 Regression] ICE with -O and constexpr

2017-05-07 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79639 Volker Reichelt changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug c++/79580] [5/6 Regression] ICE in nested_anon_class_index, at cp/mangle.c:1604

2017-04-04 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79580 Volker Reichelt changed: What|Removed |Added CC||reichelt at gcc dot gnu.org

[Bug c++/58634] [c++11] ICE initializing static class member via an anonymous class

2017-04-04 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58634 Volker Reichelt changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/80296] Broken diagnostic 'unary_plus_expr' not supported by expression

2017-04-04 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80296 Volker Reichelt changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/80296] Broken diagnostic 'unary_plus_expr' not supported by expression

2017-04-04 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80296 --- Comment #3 from Volker Reichelt --- Author: reichelt Date: Tue Apr 4 16:30:44 2017 New Revision: 246683 URL: https://gcc.gnu.org/viewcvs?rev=246683=gcc=rev Log: PR c++/80296 * cxx-pretty-print.c

[Bug c/35441] pretty-printer cannot handle some expressions

2017-04-03 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35441 --- Comment #10 from Volker Reichelt --- Patch at https://gcc.gnu.org/ml/gcc-patches/2017-03/msg00498.html

[Bug c++/80296] Broken diagnostic 'unary_plus_expr' not supported by expression

2017-04-03 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80296 --- Comment #2 from Volker Reichelt --- Patch at https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00111.html

[Bug c++/80296] Broken diagnostic 'unary_plus_expr' not supported by expression

2017-04-03 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80296 Volker Reichelt changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/80296] New: Broken diagnostic 'unary_plus_expr' not supported by expression

2017-04-03 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- GCC gives a broken daignostic for the following invalid code snippet since GCC 4.7.0

[Bug c++/77339] [5/6/7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in cp_parser_type_name, at cp/parser.c:16532

2017-03-31 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77339 --- Comment #6 from Volker Reichelt --- *** Bug 58987 has been marked as a duplicate of this bug. ***

[Bug c++/58987] [5/6/7 Regression] ICE with template alias

2017-03-31 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58987 Volker Reichelt changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug c++/80259] New: [5/6/7 Regression] ICE deleting friend function

2017-03-29 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers an ICE since GCC 5.1.0: void foo() {} struct

[Bug c++/80240] cannot dynamic_cast variable to intmax_t from variable of type intmax_t

2017-03-28 Thread reichelt at gcc dot gnu.org
||reichelt at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Volker Reichelt --- The C++ standard says in [expr.dynamic.cast]: 1 The result of the expression dynamic_cast(v) is the result of converting the expression v to type T. T

[Bug c++/80244] New: [6/7 Regression] ICE with attribute in template alias

2017-03-28 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following code snippet triggers an ICE since GCC 6.1.0

[Bug c++/80241] New: [5/6/7 Regression] Broken error message + ICE with invalid attribute

2017-03-28 Thread reichelt at gcc dot gnu.org
, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers a broken error message followed

[Bug c++/80145] New: [c++1y] ICE after failed return type deduction

2017-03-22 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet (compiled with -std=c++1y) triggers an ICE since GCC 4.8.0

[Bug c++/80141] New: ICE with pragma omp declare

2017-03-21 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet (compiled with -fopenmp) triggers an ICE since GCC 4.9.0

[Bug c++/80059] [7 Regression] ICE with invalid noexcept for __transaction_atomic

2017-03-20 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80059 --- Comment #11 from Volker Reichelt --- Hi Marek, thanks for the fix! However, the ChangeLog entry is wrong. In the final version you didn't call instantiate_non_dependent_expr_sfinae, but instantiate_non_dependent_expr instead. Would you

[Bug bootstrap/28561] Broken dependencies

2017-03-20 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28561 Volker Reichelt changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/80096] New: [c++1z] ICE with auto template parameter

2017-03-19 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE on trunk (when compiled with -std=c++1z): = template struct

[Bug c++/79549] [c++1z] ICE in tsubst, at cp/pt.c:13474 with partial specialization of auto... template parameter pack

2017-03-19 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79549 Volker Reichelt changed: What|Removed |Added CC||barry.revzin at gmail dot com ---

[Bug c++/79138] ICE when trying to do template auto

2017-03-19 Thread reichelt at gcc dot gnu.org
||reichelt at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #2 from Volker Reichelt --- This was fixed with Jason's patch for PR79549, so marking it as duplicate. Btw, clang 4.0.0 accepts the code. *** This bug has been marked

[Bug c++/80095] New: [5/6/7 Regression] ICE with this pointer in NSDMI

2017-03-18 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE since GCC 5.1.0 (when compiled with -std=c++1y

[Bug c++/80073] New: [7 Regression] ICE with virtual base

2017-03-16 Thread reichelt at gcc dot gnu.org
: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet (compiled with -std=c++1z) triggers an ICE on trunk: struct A {}; struct B : virtual

[Bug c++/80059] New: [7 Regression] ICE with invalid noexcept for __transaction_atomic

2017-03-15 Thread reichelt at gcc dot gnu.org
-on-invalid-code, trans-mem Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet (compiled with -fgnu-tm) triggers an ICE on trunk

[Bug c++/80043] New: [6/7 Regression] ICE with pointer-to-member-function and -fpermissive

2017-03-14 Thread reichelt at gcc dot gnu.org
-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following code snippet (compiled with -fpermissive) triggers an ICE since GCC 6.1.0

[Bug c++/80014] New: [6/7 Regression] Caret missing in error message

2017-03-12 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The caret is missing in the error message for testcase gcc/testsuite/g++.dg/rtti/typeid6.C since GCC 6.1.0: gcc-6-branch: typeid6.C

[Bug c/35441] pretty-printer cannot handle some expressions

2017-03-09 Thread reichelt at gcc dot gnu.org
|unassigned at gcc dot gnu.org |reichelt at gcc dot gnu.org

[Bug c++/28254] ICE with invalid class$

2017-03-06 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28254 Volker Reichelt changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/58987] [5/6/7 Regression] ICE with template alias

2017-03-03 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58987 Volker Reichelt changed: What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code Known to

[Bug c++/79822] New: [7 Regression] ICE with void statement expression

2017-03-02 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers an ICE on trunk: == bool foo() { return

[Bug sanitizer/79783] [7 Regression] ICE on valid C++ with -fsanitize=address

2017-03-01 Thread reichelt at gcc dot gnu.org
||reichelt at gcc dot gnu.org Known to work||6.1.0 Ever confirmed|0 |1 Known to fail||7.0.1 --- Comment #1 from Volker Reichelt --- Even simpler testcase, crashes with -O -fsanitize

[Bug c++/79797] New: [5/6/7 Regression] ICE with NSDMI, this pointer and constexpr

2017-03-01 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following (valid?) code snippet (compiled with -std=c++1y) triggers an ICE since GCC 5.1.0: = struct A { A* x

[Bug c++/79796] New: [5/6/7 Regression] ICE with NSDMI and this pointer

2017-03-01 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet (compiled with -std=c++1y) triggers an ICE since GCC 5.1.0: = struct A { A* p

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

2017-02-24 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687 --- Comment #19 from Volker Reichelt --- No, that's again invalid. The second operand of .* or .-> must point to a valid class member, otherwise you'll get undefined behavior. The only way to achieve this in this class with a single member is to

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

2017-02-23 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687 --- Comment #16 from Volker Reichelt --- According to [expr.mptr.oper] the code in comment 15 has undefined behavior, because the second operand of ->* is the null-pointer-to-member-value.

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

2017-02-23 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687 --- Comment #11 from Volker Reichelt --- The following testcase returns 1 for me since at least GCC 4.7. clang (3.2 - 4.0.0rc2), VS (2012, 2015) and ICC all return 0. struct A {

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

2017-02-23 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687 --- Comment #5 from Volker Reichelt --- The problems actually seem to be older. We experienced crashes already with GCC 4.8.2, but don't have a small testcase for this, yet.

[Bug c++/79687] New: [6/7 Regression] Wrong code with pointer-to-member

2017-02-23 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following code snippet is miscompiled since GCC 6: == struct A { char c; }; int main() { char

[Bug c++/79681] New: ICE with constexpr and bitfield

2017-02-22 Thread reichelt at gcc dot gnu.org
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE since GCC 5.1.0: struct A { int i : 4; }; constexpr bool foo() { A x

[Bug c++/79672] New: ICE with -Wduplicated-branches -fopenmp

2017-02-22 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The followiong code snippet triggers an ICE on trunk when compiled with "-Wduplicated-branches -fo

[Bug c++/79664] New: ICE with #pragma omp parallel in constexpr function

2017-02-21 Thread reichelt at gcc dot gnu.org
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following code snippet (compiled with "-std=c++1y -fopenmp") triggers an ICE since GCC 5.1.0: == constexpr int foo() {

[Bug c++/79641] New: [5/6/7 Regression] ICE with const variable and attribute

2017-02-20 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- Build: [ The following valid line of code triggers an ICE since GCC 4.2.0

[Bug c++/79640] New: ICE with generic lambda expression

2017-02-20 Thread reichelt at gcc dot gnu.org
: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE since GCC 5.1.0: === template void foo(F f) { f(1

[Bug c++/79639] New: [6/7 Regression] ICE with -O and constexpr

2017-02-20 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid testcase (compiled with "-std=c++1y -O") triggers an ICE since GCC 6.1.0: =

[Bug c++/79607] [5/6/7 Regression] ICE with brace-initialization of static const member

2017-02-19 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79607 --- Comment #1 from Volker Reichelt --- This might be related to PR79535.

[Bug c++/79607] New: [5/6/7 Regression] ICE with brace-initialization of static const member

2017-02-19 Thread reichelt at gcc dot gnu.org
-on-valid-code, rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE since GCC 5.1.0

[Bug c++/79606] New: [7 Regression] ICE with NSDMI and this pointer in template

2017-02-19 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE on trunk: = struct A { int

[Bug c++/79555] Warning 'base class should be explicitly initialized in the copy constructor' issued in wrong case

2017-02-16 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79555 Volker Reichelt changed: What|Removed |Added Known to work|6.3.1 | Summary|[7 Regression]

[Bug c++/79555] New: Warning 'base class should be explicitly initialized in the copy constructor' issued in wrong case

2017-02-16 Thread reichelt at gcc dot gnu.org
Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The C++ front-end (with -Wextra enabled) complains about the following

[Bug c++/79525] New: [c++1y] ICE with auto as function parameter

2017-02-15 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers an ICE since the introduction of auto as function parameter (GCC 4.9.0

[Bug c++/79519] New: [5/6/7 Regression] ICE deleting template friend function

2017-02-14 Thread reichelt at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers since GCC 5.1.0

[Bug c++/79379] New: [7 Regression] ICE with #pragma GCC ivdep

2017-02-04 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE on trunk: == template void foo(int* p) { #pragma GCC

[Bug c++/78345] [5/6/7 Regression] ICE on invalid c++ code on x86_64-linux-gnu (internal compiler error: in cxx_eval_outermost_constant_expr, at cp/constexpr.c:4464)

2017-02-04 Thread reichelt at gcc dot gnu.org
|P3 CC||reichelt at gcc dot gnu.org Known to work|4.9.4 |4.8.4 Known to fail||4.9.4 --- Comment #4 from Volker Reichelt --- Here's a slightly modified testcase that triggers

[Bug c++/79377] New: [6/7 Regression] ICE with increment operator in -fpermissive mode

2017-02-04 Thread reichelt at gcc dot gnu.org
-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following code snippet (compiled with "-fpermissive") triggers an ICE since

[Bug c++/79368] [7 Regression] ICE with pointer to unnamed struct

2017-02-04 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79368 Volker Reichelt changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/79091] [7 regression] ICE in write_unnamed_type

2017-02-04 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79091 Volker Reichelt changed: What|Removed |Added CC||reichelt at gcc dot gnu.org

[Bug c++/79368] [7 Regression] ICE with pointer to unnamed struct

2017-02-04 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79368 --- Comment #2 from Volker Reichelt --- I was using r244478 from 2017-01-15. I'll retry with today's version. The command line was just plain "g++ -c".

[Bug c++/79368] New: [7 Regression] ICE with pointer to unnamed struct

2017-02-03 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE on trunk: === typedef struct{}* X; template

[Bug c++/79363] New: [6/7 Regression] ICE with NSDMI and array

2017-02-03 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE since GCC 6.1.0: == struct A {}; struct B { B() {} int i

[Bug c++/79361] New: [5/6/7 Regression] ICE redefining a template function as defaulted or deleted

2017-02-03 Thread reichelt at gcc dot gnu.org
: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following two invalid testcases trigger ICEs on trunk

[Bug c++/79360] New: [5.4/6/7 Regression] ICE with NSDMI and enum in union

2017-02-03 Thread reichelt at gcc dot gnu.org
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- Compiling the following valid code results in a crash === union U { enum E { e }; }; struct A { U u{}; }; === bug3.cc:8:7

[Bug sanitizer/70147] [6 Regression] testcase from hana testsuite gets miscompiled with -fsanitize=undefined

2016-03-14 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70147 Volker Reichelt changed: What|Removed |Added CC||reichelt at gcc dot gnu.org

[Bug c++/70029] [6 Regression] ICE with C++11 and -flto

2016-03-01 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70029 Volker Reichelt changed: What|Removed |Added Known to work||5.3.0 Target Milestone|---

[Bug c++/70029] New: [6 Regression] ICE with C++11 and -flto

2016-03-01 Thread reichelt at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet triggers an ICE on trunk when compiled with "-std=c++11 -g

[Bug c++/68586] [6 Regression] Enum template parameter wrongly rejected

2015-11-30 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68586 Volker Reichelt changed: What|Removed |Added CC||jason at redhat dot com Known to

[Bug c++/68586] New: [6 Regression] Enum template parameter wrongly rejected

2015-11-27 Thread reichelt at gcc dot gnu.org
Severity: major Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet is wrongly rejected on trunk (6.0.0 20151122

[Bug bootstrap/68540] 6.0 build process broken on Linux Mint, potential include ordering problem

2015-11-27 Thread reichelt at gcc dot gnu.org
||2015-11-27 CC||reichelt at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Volker Reichelt --- I have the same problem on an OpenSUSE 13.1 distribution.

[Bug c++/65970] New: [C++14] Endless loop with constexpr

2015-05-01 Thread reichelt at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The compiler loops forever when compiling the following invalid testcase with -std=c++14: constexpr int foo() { while (true) x; return 0; } int i = foo

[Bug c++/58597] [c++11] ICE with lambda in default argument of template function

2015-01-14 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58597 --- Comment #4 from Volker Reichelt reichelt at gcc dot gnu.org --- The ICE disappered on the 4.9 branch in GCC 4.9.2. But the testcase still crashes trunk with a different stack trace: bug.cc:6:12: internal compiler error: Segmentation fault

[Bug libstdc++/64571] [5.0 Regression] Link failure with fstream due to new string implementation

2015-01-12 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64571 Volker Reichelt reichelt at gcc dot gnu.org changed: What|Removed |Added Known to work||4.8.0

<    1   2   3   4   5   6   7   8   >