[Bug c++/77804] New: Internal compiler error on incorrect initialization of new-d array

2016-09-30 Thread vgheorgh at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vgheorgh at gmail dot com Target Milestone: --- The code below #include int main() { char buf[256]; std::size_t n = 10; int* p = new (buf) (int[n]); // incorrect way

[Bug c++/41437] No access control for classes in template functions

2016-06-24 Thread vgheorgh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41437 Vlad Gheorghiu changed: What|Removed |Added CC||vgheorgh at gmail dot com --- Comment

[Bug c++/68077] New: Namespace having the same name as contained class should not compile

2015-10-24 Thread vgheorgh at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vgheorgh at gmail dot com Target Milestone: --- According to [7.3.4/6 Using directive [namespace udir]] the following code is ill-formed, and there is no "no diagnostic req

[Bug c++/66595] New: [C++14] ICE in partial specialization template variables

2015-06-18 Thread vgheorgh at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vgheorgh at gmail dot com Target Milestone: --- The code below templatetypename T int typeID{42}; templatetypename T double typeIDdouble{10.10}; int main() {} produces an internal compiler

[Bug c++/66350] typename should be forbidden in inhering constructors

2015-06-01 Thread vgheorgh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66350 --- Comment #2 from Vlad Gheorghiu vgheorgh at gmail dot com --- (In reply to Martin Sebor from comment #1) Here's a reduced test case compiled with -Wall in C++ 98 mode: $ cat t.cpp ~/bin/gcc-5.1.0/bin/g++ -Wall -std=c++98 -c t.cpp

[Bug c++/66350] New: typename should be forbidden in inhering constructors

2015-05-30 Thread vgheorgh at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vgheorgh at gmail dot com Target Milestone: --- The code below #include memory template class T, class Deleter = std::default_deleteT class unique_ptr_wrapper: public std::unique_ptrT, Deleter { public: using

[Bug c++/66211] New: Rvalue conversion in ternary operator causes internal compiler error

2015-05-19 Thread vgheorgh at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vgheorgh at gmail dot com Target Milestone: --- The code below void f(int){} int main() { int x = 0; double y = 1; f(1 0 ? x : y); } should not compile, due

[Bug c++/66109] defining constexpr objects without initializer

2015-05-11 Thread vgheorgh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66109 --- Comment #1 from Vlad Gheorghiu vgheorgh at gmail dot com --- Actually the `constexpr` ctor is not even necessary here to reproduce the bug.

[Bug c++/66109] New: defining constexpr objects without initializer

2015-05-11 Thread vgheorgh at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: vgheorgh at gmail dot com Target Milestone: --- The following code struct Foo { constexpr Foo() = default; }; int main() { constexpr Foo foo; } should not compile. Unfortunately it compiles with all g

[Bug c++/65382] pointer-to-noexcept-function typealias allowed via using

2015-05-11 Thread vgheorgh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65382 --- Comment #2 from Vlad Gheorghiu vgheorgh at gmail dot com --- More details: http://stackoverflow.com/q/30172483/3093378

[Bug c++/65382] pointer-to-noexcept-function typealias allowed via using

2015-05-11 Thread vgheorgh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65382 --- Comment #3 from Vlad Gheorghiu vgheorgh at gmail dot com --- Please ignore the previous comment, posted by mistake for another bug I reported

[Bug c++/66109] defining constexpr objects without initializer

2015-05-11 Thread vgheorgh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66109 --- Comment #2 from Vlad Gheorghiu vgheorgh at gmail dot com --- More details at http://stackoverflow.com/q/30172483/3093378

[Bug c++/65382] New: pointer-to-noexcept-function typealias allowed via using

2015-03-12 Thread vgheorgh at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vgheorgh at gmail dot com According to 15.4 Exception specifications [except.spec]/2, the following code should be rejected, #include iostream using fptr = void(*)() noexcept; // should

[Bug c++/65382] pointer-to-noexcept-function typealias allowed via using

2015-03-10 Thread vgheorgh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65382 --- Comment #1 from Vlad Gheorghiu vgheorgh at gmail dot com --- I compiled with gcc5 and also with gcc4.9.2, using `-Wall -Wextra -pedantic`