On 22 October 2014 02:46, Chen Gang wrote:
>
>
> On 10/15/14 18:07, Chen Gang wrote:
>> On 10/13/14 21:18, Chen Gang wrote:
>>> On 10/13/14 18:53, Jason Merrill wrote:
On 10/12/2014 10:32 AM, Chen Gang wrote:
>[root@localhost qemu_cc]# cat test.cc
>const char n() { return 1; }
On 10/22/2014 09:44 PM, Jonathan Wakely wrote:
> On 22 October 2014 02:46, Chen Gang wrote:
>> On 10/15/14 18:07, Chen Gang wrote:
>>> On 10/13/14 21:18, Chen Gang wrote:
On 10/13/14 18:53, Jason Merrill wrote:
> On 10/12/2014 10:32 AM, Chen Gang wrote:
>>[root@localhost qemu_cc]#
Hello.
I've been playing with following example:
#include
class Base
{
public:
virtual ~Base() {}
};
class Derived: public Base
{
};
#define N 1000
int main()
{
Base **b = (Base **)malloc (sizeof(Base *) * N);
for (unsigned i = 0; i < N; i++)
b[i] = new Derived();
for (unsigned
I noticed the issue with 4.9.1 (in that x86 Linux'es
this_cpu_read_stable() no longer does what the comment preceding
its definition promises), and the example below demonstrates this in
a simplified (but contrived) way. I just now verified that trunk has
the same issue; 4.8.3 still folds redundant
On 22 October 2014 16:15, Martin Liška wrote:
> Hello.
>
> I've been playing with following example:
>
> #include
>
> class Base
> {
> public:
> virtual ~Base() {}
> };
>
> class Derived: public Base
> {
> };
>
> #define N 1000
>
> int main()
> {
> Base **b = (Base **)malloc (sizeof(Base *) *
On 2014.10.22 at 17:15 +0200, Martin Liška wrote:
> Hello.
>
> I've been playing with following example:
>
> #include
>
> class Base
> {
> public:
>virtual ~Base() {}
> };
>
> class Derived: public Base
> {
> };
>
> #define N 1000
>
> int main()
> {
>Base **b = (Base **)malloc (sizeo
What should I tell a user who wants to create an account?
Jason
On 10/22/2014 05:30 PM, Markus Trippelsdorf wrote:
On 2014.10.22 at 17:15 +0200, Martin Liška wrote:
Hello.
I've been playing with following example:
#include
class Base
{
public:
virtual ~Base() {}
};
class Derived: public Base
{
};
#define N 1000
int main()
{
Base **b = (Base **
On 10/22/2014 05:30 PM, Jonathan Wakely wrote:
On 22 October 2014 16:15, Martin Liška wrote:
Hello.
I've been playing with following example:
#include
class Base
{
public:
virtual ~Base() {}
};
class Derived: public Base
{
};
#define N 1000
int main()
{
Base **b = (Base **)malloc (s
On Wed, Oct 22, 2014 at 11:56:19AM -0400, Jason Merrill wrote:
>What should I tell a user who wants to create an account?
That they should follow the instructions and contact overseers.
On 22 October 2014 17:16, Martin Liška wrote:
> On 10/22/2014 05:30 PM, Jonathan Wakely wrote:
>>
>> On 22 October 2014 16:15, Martin Liška wrote:
>>>
>>> Hello.
>>>
>>> I've been playing with following example:
>>>
>>> #include
>>>
>>> class Base
>>> {
>>> public:
>>>virtual ~Base() {}
>>> }
Snapshot gcc-4.9-20141022 is now available on
ftp://gcc.gnu.org/pub/gcc/snapshots/4.9-20141022/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 4.9 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/branches
Sorry for bringing this up again, but this could work:
void foo(int x, int (*s)[x])
{
(*s)[x] = 1;// <- undefined behaviour
}
Such an access beyond the specified length means that either
1. the array is accessed out-of-bounds or
2. was accessed using an incompatible pointer
and a
13 matches
Mail list logo