[Bug c++/86187] Subscript operator applied to an temporary array results in an lvalue

2018-06-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86187 Marc Glisse changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/85867] Subscript operator applied to an temporary array results in an lvalue

2018-06-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85867 Marc Glisse changed: What|Removed |Added CC||zhonghao at pku dot org.cn --- Comment #3

[Bug c/84887] missing semicolon: further improvements

2018-06-16 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84887 Eric Gallager changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug other/84904] Implement an option to attempt to auto-apply fix-it hints

2018-06-16 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84904 Eric Gallager changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/56084] poor error recovery for missing ";"

2018-06-16 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56084 Eric Gallager changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #9 from Eric

[Bug c++/68615] Unhelpful location when missing a semi-colon on a function declaration at the end of a header

2018-06-16 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68615 Eric Gallager changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #4 from Eric

[Bug driver/29931] following argv[0] symlink in process_command breaks symlinked-together toolchain

2018-06-16 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29931 Eric Gallager changed: What|Removed |Added Status|NEW |WAITING --- Comment #7 from Eric

[Bug driver/40960] POSIX requires that option -D have a lower precedence than -U

2018-06-16 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40960 Eric Gallager changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug libstdc++/86188] New: Enhancement to std::merge, constexpr check of iterator types

2018-06-16 Thread joshua.r.marshall.1991 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86188 Bug ID: 86188 Summary: Enhancement to std::merge, constexpr check of iterator types Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/86187] New: Subscript operator applied to an temporary array results in an lvalue

2018-06-16 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86187 Bug ID: 86187 Summary: Subscript operator applied to an temporary array results in an lvalue Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/86186] New: Unqualified calls of std::get lead to ADL issues

2018-06-16 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86186 Bug ID: 86186 Summary: Unqualified calls of std::get lead to ADL issues Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/86185] New: gcc does not reject the ill-formed code

2018-06-16 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86185 Bug ID: 86185 Summary: gcc does not reject the ill-formed code Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/86184] New: Shall gcc support this feature?

2018-06-16 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184 Bug ID: 86184 Summary: Shall gcc support this feature? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/86183] New: Scoped enumeration instantiated even if not required

2018-06-16 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86183 Bug ID: 86183 Summary: Scoped enumeration instantiated even if not required Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/86182] New: gcc crashes when compiling the code

2018-06-16 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86182 Bug ID: 86182 Summary: gcc crashes when compiling the code Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/86181] New: static object mangling conflicts

2018-06-16 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86181 Bug ID: 86181 Summary: static object mangling conflicts Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/86180] New: Friend function definition not instantiated in certain circumstances

2018-06-16 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86180 Bug ID: 86180 Summary: Friend function definition not instantiated in certain circumstances Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/86177] Wnull-dereference warning for object file compile missing

2018-06-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86177 --- Comment #5 from Jonathan Wakely --- Why add it there and not to every other warning option that depends on interprocedural analysis and inlining? If the dereference and the null pointer are in separate files, then of course the compiler

[Bug c++/86177] Wnull-dereference warning for object file compile missing

2018-06-16 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86177 --- Comment #4 from Jonny Grant --- Thank you for your replies! Could the -flto tip be added to the -Wnull-dereference documentation? https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

[Bug middle-end/82479] missing popcount builtin detection

2018-06-16 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82479 --- Comment #13 from kugan at gcc dot gnu.org --- Author: kugan Date: Sat Jun 16 21:39:31 2018 New Revision: 261682 URL: https://gcc.gnu.org/viewcvs?rev=261682=gcc=rev Log: gcc/ChangeLog: 2018-06-16 Kugan Vivekanandarajah PR

[Bug tree-optimization/64946] [AArch64] gcc.target/aarch64/vect-abs-compile.c - "abs" vectorization fails for char/short types

2018-06-16 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64946 --- Comment #24 from kugan at gcc dot gnu.org --- Author: kugan Date: Sat Jun 16 21:34:29 2018 New Revision: 261681 URL: https://gcc.gnu.org/viewcvs?rev=261681=gcc=rev Log: gcc/ChangeLog: 2018-06-16 Kugan Vivekanandarajah PR

[Bug c/86179] ice in get_later_stmt, at tree-vectorizer.h:1108

2018-06-16 Thread dcb314 at hotmail dot com
-linux-gnu Configured with: ../trunk/configure --prefix=/home/dcb/gcc/results.261680.ubsan --with-build-config=bootstrap-ubsan --disable-multilib --disable-werror --enable-checking=df,extra,fold,rtl,yes --enable-languages=c,c++,fortran Thread model: posix gcc version 9.0.0 20180616 (experimental) (GCC) $

[Bug c/86179] New: ice in get_later_stmt, at tree-vectorizer.h:1108

2018-06-16 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86179 Bug ID: 86179 Summary: ice in get_later_stmt, at tree-vectorizer.h:1108 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c++/85471] closing a "thread" in "C++" using "pthread_exit(NULL)" creates a "SIGABRT"

2018-06-16 Thread aotto1...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85471 --- Comment #4 from Andreas Otto --- change my C++ wrapper from "embedded data" (large amount of data) to just an embedded pointer (only 8byte pointer in the C++ class) → the error is still there… ==57730== Process terminating with default

[Bug c++/86177] Wnull-dereference warning for object file compile missing

2018-06-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86177 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/86172] [meta-bug] issues with -Wnull-dereference

2018-06-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86172 Bug 86172 depends on bug 86177, which changed state. Bug 86177 Summary: Wnull-dereference warning for object file compile missing https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86177 What|Removed |Added

[Bug c/86178] No warning when missing return from function main()

2018-06-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86178 --- Comment #2 from Jonathan Wakely --- See 4) at http://en.cppreference.com/w/cpp/language/main_function#Explanation There's also an implicit "return 0;" for C, but only since C99 and only when the return type of main is compatible with int.

[Bug c++/86177] Wnull-dereference warning for object file compile missing

2018-06-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86177 --- Comment #2 from Jonathan Wakely --- That's how C++ works. Each translation unit is compiled separately. It's your job to prevent such errors.

[Bug c/86178] No warning when missing return from function main()

2018-06-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86178 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/86178] New: No warning when missing return from function main()

2018-06-16 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86178 Bug ID: 86178 Summary: No warning when missing return from function main() Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/86177] Wnull-dereference warning for object file compile missing

2018-06-16 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86177 --- Comment #1 from Jonny Grant --- If g++ compiles both main.cpp and main2.cpp at the same time (ie no separate obj file stage) it also doesn't give the expected warning. jonny@asus:~/code$ g++-8 -O2 -Wall -Wextra -Wnull-dereference -Wpedantic

[Bug c++/80485] rejects-valid: constexpr static_cast of pointer-to-member-function to bool

2018-06-16 Thread TonyELewis at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80485 --- Comment #7 from Tony E Lewis --- Ah yes - I'm seeing it compiling cleanly now on Godbolt's trunk (9.0.0 20180615). Must have been a temporary glitch in the build (and couldn't possibly have been due to my error :P ).

[Bug c/86174] Poor vectorization/register allocation with omp simd, FMA

2018-06-16 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86174 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org ---

[Bug c++/86177] New: Wnull-dereference warning for object file compile missing

2018-06-16 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86177 Bug ID: 86177 Summary: Wnull-dereference warning for object file compile missing Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal

[Bug c++/86176] New: Wnull-dereference warning disappears with a call to std::cout on the line after

2018-06-16 Thread jg at jguk dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86176 Bug ID: 86176 Summary: Wnull-dereference warning disappears with a call to std::cout on the line after Product: gcc Version: 8.1.0 Status: UNCONFIRMED

[Bug lto/86175] New: LTO code generator does not respect ld -u option to force symbol inclusion in the link product

2018-06-16 Thread zenith432 at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86175 Bug ID: 86175 Summary: LTO code generator does not respect ld -u option to force symbol inclusion in the link product Product: gcc Version: 8.1.1 Status: UNCONFIRMED

[Bug c/86174] New: Poor vectorization/register allocation with omp simd, FMA

2018-06-16 Thread jed at 59A2 dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86174 Bug ID: 86174 Summary: Poor vectorization/register allocation with omp simd, FMA Product: gcc Version: 8.1.1 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/80335] perf of copying std::optional

2018-06-16 Thread sgunderson at bigfoot dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80335 --- Comment #3 from sgunderson at bigfoot dot com --- Appears to have been fixed in GCC 8, indeed. #include std::optional func() { return 3; } GCC 7 (-O2) compiles to: 0: 48 89 f8mov%rdi,%rax 3: c7 07 03

[Bug c++/86171] [6/7/8/9 Regression] g++ ICE on valid code: tree check: expected var_decl or function_decl, have type_decl in duplicate_decls, at cp/decl.c:2291

2018-06-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86171 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Version|unknown

[Bug c++/86173] Default construction of a union (in std::optional)

2018-06-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86173 --- Comment #1 from Marc Glisse --- Note that constructing optional from std::nullopt does avoid the memset.

[Bug libstdc++/80335] perf of copying std::optional

2018-06-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80335 Marc Glisse changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/86173] New: Default construction of a union (in std::optional)

2018-06-16 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86173 Bug ID: 86173 Summary: Default construction of a union (in std::optional) Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal

[Bug middle-end/86095] [8/9 Regression] documentation for -Wunsafe-loop-optimizations references options which have no effect any more

2018-06-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86095 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/86095] [8/9 Regression] documentation for -Wunsafe-loop-optimizations references options which have no effect any more

2018-06-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86095 --- Comment #3 from Jakub Jelinek --- Author: jakub Date: Sat Jun 16 06:51:32 2018 New Revision: 261679 URL: https://gcc.gnu.org/viewcvs?rev=261679=gcc=rev Log: PR middle-end/86095 * common.opt (Wunsafe-loop-optimizations): Add

[Bug middle-end/86095] [8/9 Regression] documentation for -Wunsafe-loop-optimizations references options which have no effect any more

2018-06-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86095 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Sat Jun 16 06:52:17 2018 New Revision: 261680 URL: https://gcc.gnu.org/viewcvs?rev=261680=gcc=rev Log: PR middle-end/86095 * common.opt (Wunsafe-loop-optimizations): Add

[Bug rtl-optimization/86108] [8/9 Regression] crash during unwinding with -O2

2018-06-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86108 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Sat Jun 16 06:50:31 2018 New Revision: 261678 URL: https://gcc.gnu.org/viewcvs?rev=261678=gcc=rev Log: PR rtl-optimization/86108 * bb-reorder.c (create_forwarder_block):

[Bug c++/86147] [8/9 Regression] Lambda is capturing a non-ODR-used constexpr

2018-06-16 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86147 --- Comment #1 from Jason Merrill --- Author: jason Date: Sat Jun 16 06:35:53 2018 New Revision: 261676 URL: https://gcc.gnu.org/viewcvs?rev=261676=gcc=rev Log: PR c++/86147 - wrong capture for template argument. * expr.c

[Bug c++/86147] [8/9 Regression] Lambda is capturing a non-ODR-used constexpr

2018-06-16 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86147 --- Comment #1 from Jason Merrill --- Author: jason Date: Sat Jun 16 06:35:53 2018 New Revision: 261676 URL: https://gcc.gnu.org/viewcvs?rev=261676=gcc=rev Log: PR c++/86147 - wrong capture for template argument. * expr.c

[Bug c++/86147] [8/9 Regression] Lambda is capturing a non-ODR-used constexpr

2018-06-16 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86147 --- Comment #2 from Jason Merrill --- Author: jason Date: Sat Jun 16 06:36:19 2018 New Revision: 261677 URL: https://gcc.gnu.org/viewcvs?rev=261677=gcc=rev Log: PR c++/86147 - wrong capture for template argument. * expr.c