[Bug c++/100741] New: [enhancement] Should show better error message if using ‘typedef’ instead of ‘using’.

2021-05-24 Thread cyp561 at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cyp561 at gmail dot com Target Milestone: --- Test code: typedef Rng = std::mt19937_64; Actual error message: error: ‘Rng’ does not name a type Useful

[Bug c++/91793] [8/9/trunk regression] ICE on unexpanded parameter pack in lambda

2019-09-17 Thread cyp561 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91793 --- Comment #2 from Cyp --- Compiler output from reduced testcase: --- 91793.cpp: In instantiation of ‘ [with auto:1 = {}]’: 91793.cpp:6:4: required from here 91793.cpp:4:25: internal compiler error: Segmentation fault

[Bug c++/91793] [8/9/trunk regression] ICE on unexpanded parameter pack in lambda

2019-09-17 Thread cyp561 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91793 --- Comment #1 from Cyp --- Reduced (creduce) testcase which reproduces ICE: --- int a( [](auto... a) { [] { using b = decltype(a); };

[Bug c++/91793] New: [8/9/trunk regression] ICE on unexpanded parameter pack in lambda

2019-09-17 Thread cyp561 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cyp561 at gmail dot com Target Milestone: --- Managed to produce a parameter pack expansion that works in clang trunk but not GCC trunk today: https://godbolt.org/z/PkaZqQ. No bugzilla

[Bug c++/91792] New: [9 Regression] constexpr ++ or -- evaluation fails on float or double

2019-09-17 Thread cyp561 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cyp561 at gmail dot com Target Milestone: --- According to https://godbolt.org/z/XzT1wz, compiles in 8.3 and trunk. Fails compilation on 9.2. constexpr float f() { float x = 42

[Bug c++/51392] Wrong code with -Os when __attribute__((__const__)) function returns structure

2016-10-16 Thread cyp561 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51392 --- Comment #4 from cyp561 at gmail dot com --- Is there any case in which a function returning a structure may not elide the return value copy to being passed by invisible reference? If not, I think it is either a bug that the code fails

[Bug c++/58559] New: Underlying type of enum is hybrid of int and unsigned

2013-09-28 Thread cyp561 at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cyp561 at gmail dot com An enum with no values outside the range 0..INT_MAX seems to be treated as an int in all cases, with the exception that casting to long or long long does not sign extend. As far as I understand

[Bug c++/58325] New: Spurious unused-but-set-variable warning on delete[] of volatile pointer

2013-09-05 Thread cyp561 at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cyp561 at gmail dot com The following code should not generate “volatile.cpp:3:16: warning: variable ‘usedAndSet’ set but not used [-Wunused-but-set-variable]”, but does anyway

[Bug c++/51392] New: Wrong code with -Os when __attribute__((__const__)) function returns structure

2011-12-03 Thread cyp561 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51392 Bug #: 51392 Summary: Wrong code with -Os when __attribute__((__const__)) function returns structure Classification: Unclassified Product: gcc Version: 4.5.3 Status:

[Bug c++/47490] New: __Unwind_SjLj_Unregister clobbers return value with i586-mingw32msvc-g++ 4.4.4 and -fstack-protector

2011-01-27 Thread cyp561 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47490 Summary: __Unwind_SjLj_Unregister clobbers return value with i586-mingw32msvc-g++ 4.4.4 and -fstack-protector Product: gcc Version: 4.4.4 Status: UNCONFIRMED Severity:

[Bug c++/36979] New: 'sizeof' wrong when using typedef ... __attribute__((mode(*I))) in a template

2008-07-31 Thread cyp561 at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cyp561 at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36979

[Bug c/26630] New: Incorrect result when subtracting, casting to short and back to int, adding and multiplying

2006-03-10 Thread cyp561 at gmail dot com
and multiplying Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cyp561 at gmail dot com GCC build triplet: i686-pc-linux-gnu