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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41437
Vlad Gheorghiu changed:
What|Removed |Added
CC||vgheorgh at gmail dot com
--- Comment
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
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
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
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
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
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.
++
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
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
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
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
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
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`
14 matches
Mail list logo