[Bug c++/65328] GCC perf issue when compiling templates - 120x slower than Clang

2022-06-10 Thread juchem at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65328 --- Comment #11 from juchem at gmail dot com --- great job

[Bug c++/65328] GCC perf issue when compiling templates - 120x slower than Clang

2015-03-05 Thread juchem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65328 --- Comment #7 from juchem at gmail dot com --- Created attachment 34969 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34969&action=edit FWIW, preprocessed file from clang 3.4 generated with: $ time clang++-3.4 -Wall -std=c++1

[Bug c++/65328] GCC perf issue when compiling templates - 120x slower than Clang

2015-03-05 Thread juchem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65328 --- Comment #4 from juchem at gmail dot com --- Created attachment 34966 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34966&action=edit preprocessed file from gcc 4.8 generated with: $ time g++-4.8 -Wall -std=c++11 -E -I . fat

[Bug c++/65328] GCC perf issue when compiling templates - 120x slower than Clang

2015-03-05 Thread juchem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65328 juchem at gmail dot com changed: What|Removed |Added Attachment #34965|0 |1 is obsolete

[Bug c++/65328] GCC perf issue when compiling templates - 120x slower than Clang

2015-03-05 Thread juchem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65328 juchem at gmail dot com changed: What|Removed |Added Attachment #34966|0 |1 is obsolete

[Bug c++/65328] GCC perf issue when compiling templates - 120x slower than Clang

2015-03-05 Thread juchem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65328 --- Comment #3 from juchem at gmail dot com --- Created attachment 34965 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34965&action=edit preprocessed files from gcc 4.9 generated with: $ time g++-4.9 -Wall -std=c++11 -E -I . fat

[Bug c++/65328] New: GCC perf issue when compiling templates - 120x slower than Clang

2015-03-05 Thread juchem at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: juchem at gmail dot com Debian's g++ 4.9.2 and gcc 4.8.4 are extremely slow at compiling some templates. They take more than 1h to compile the same code that Clang 3.4 needs 39 se

[Bug c++/62274] [C++11] Variadic templates expansion into non-variadic class template

2015-03-04 Thread juchem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62274 --- Comment #3 from juchem at gmail dot com --- Clang does accept this code: http://goo.gl/YKBt2l

[Bug c++/62277] New: [C++11] constexpr member methods are treated as const, regardless of const modifier

2014-08-26 Thread juchem at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: juchem at gmail dot com The following code fails to compile. Tested in Debian sid (g++ 4.8.3-9 and 4.9.1-9) and in http://ideone.com (gcc 4.8.1). Defining CONSTEXPR to

[Bug c++/62276] ICE when non-variadic template template parameter is default argument of variadic template template parameter

2014-08-26 Thread juchem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62276 --- Comment #1 from juchem at gmail dot com --- Scratch the list of compilers tested (copy pasto). This is the actual compiler I tested on: $ g++ --version g++ (Debian 4.9.1-9) 4.9.1 Copyright (C) 2014 Free Software Foundation, Inc. This is free

[Bug c++/62274] [C++11] Variadic templates expansion into non-variadic class template

2014-08-26 Thread juchem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62274 --- Comment #1 from juchem at gmail dot com --- Scratch the list of compilers tested (copy pasto). This is the actual compiler I tested on: $ g++ --version g++ (Debian 4.9.1-9) 4.9.1 Copyright (C) 2014 Free Software Foundation, Inc. This is free

[Bug c++/62276] New: ICE when non-variadic template template parameter is default argument of variadic template template parameter

2014-08-26 Thread juchem at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: juchem at gmail dot com Created attachment 33399 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33399&acti

[Bug c++/62274] New: [C++11] Variadic templates expansion into non-variadic class template

2014-08-26 Thread juchem at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: juchem at gmail dot com The code below won't compile for gcc 4.9.0, 4.8.1 and 4.7.3. Tested in Debian sid (aug/2014), http://gcc.godbolt.org/ and http://ideone.com. #include