[Bug regression/56751] New: Can not confugure stage 2

2013-03-26 Thread maxim.prohorenko at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56751



 Bug #: 56751

   Summary: Can not confugure stage 2

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: regression

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: maxim.prohore...@gmail.com





For gcc 4.7.2 work fine.



../gcc-4.7.2/configure --prefix=/usr/local/gcc-4.7.2 --disable-multilib

--enable-languages=c,c++ --without-ppl --without-cloog

--with-mpfr=/usr/local/mpfr-3.0.1 --with-mpc=/usr/local/mpc-0.9

--with-gmp=/usr/local/gmp-5.0.2





For gcc 4.8.0 work wrong.

../gcc-4.8.0/configure --prefix=/home/prohorenko/usr/local/gcc-4.8.0

--disable-multilib --enable-languages=c,c++ --without-ppl --without-cloog

--with-mpfr=/usr/local/mpfr-3.0.1 --with-mpc=/usr/local/mpc-0.9

--with-gmp=/usr/local/gmp-5.0.2



If set

LD_LIBRARY_PATH="/usr/local/mpc-0.9/lib/:/usr/local/mpfr-3.0.1/lib/:/usr/local/gmp-5.0.2/lib/:$LD_LIBRARY_PATH"



Then work fine too.


[Bug regression/56751] Can not confugure stage 2

2013-03-26 Thread maxim.prohorenko at gmail dot com

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56751

Максим Прохоренко  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #1 from Максим Прохоренко  
2013-03-27 06:54:43 UTC ---
Work ok

[Bug c/52336] New: Change the private field without any warning or error.

2012-02-21 Thread maxim.prohorenko at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52336

 Bug #: 52336
   Summary: Change the private field without any warning or error.
Classification: Unclassified
   Product: gcc
   Version: 4.6.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: maxim.prohore...@gmail.com


// base
class base
{
public:
  base () : mask_private_with_warning (0), private_with_warning (0) {}

private:
// private union
  union
  {
struct
{
  unsigned int private_bit_without_warning : 1;
};

unsigned int mask_private_with_warning;
  };

// private field
  unsigned int private_with_warning;
};

class der : public base
{
};

int main (int , char **)
{
  der d;
  d.mask_private_with_warning = 1;
  d.private_with_warning = 1;

  d.private_bit_without_warning = 1; 
#warning "private private_bit_without_warning"

  return 0;
}

// gcc 4.6.2 -Wall -W -Wcast-align -Werror -Wfloat-equal -Wpointer-arith
-Wunused -Wwrite-strings -Wno-long-long -std=gnu++98 -Wuninitialized -Wformat=1
-Wformat-security -Wcast-qual
//--cut---


/home/prohorenko/projects/gcc_bug_private/build> make
[100%] Building CXX object CMakeFiles/gcc_bug_private.dir/main.cpp.o
/home/prohorenko/projects/gcc_bug_private/main.cpp:34:2: error: #warning
"private private_bit_without_warning"
/home/prohorenko/projects/gcc_bug_private/main.cpp: In function ‘int main(int,
char**)’:
/home/prohorenko/projects/gcc_bug_private/main.cpp:16: error: ‘unsigned int
basemask_private_with_warning’ is private
/home/prohorenko/projects/gcc_bug_private/main.cpp:30: error: within this
context
/home/prohorenko/projects/gcc_bug_private/main.cpp:20: error: ‘unsigned int
base::private_with_warning’ is private
/home/prohorenko/projects/gcc_bug_private/main.cpp:31: error: within this
context
make[2]: *** [CMakeFiles/gcc_bug_private.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/gcc_bug_private.dir/all] Error 2
make: *** [all] Error 2
*** Failed ***


[Bug c++/90196] New: std:: types unused without warnings but simple type not affected

2019-04-20 Thread maxim.prohorenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90196

Bug ID: 90196
   Summary: std:: types unused without warnings but simple type
not affected
   Product: gcc
   Version: 9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: maxim.prohorenko at gmail dot com
  Target Milestone: ---

#include 
#include 

int main()
{
  std::bitset<20> std_unused_bitset;
  std::vector std_unused_vector;

  double unused_double = 0;
  int unused_int = 0;
}



Start
Using built-in specs.
COLLECT_GCC=/opt/wandbox/gcc-head/bin/g++
COLLECT_LTO_WRAPPER=/opt/wandbox/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/9.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../source/configure --prefix=/opt/wandbox/gcc-head
--enable-languages=c,c++ --disable-multilib --without-ppl --without-cloog-ppl
--enable-checking=release --disable-nls --enable-lto
LDFLAGS=-Wl,-rpath,/opt/wandbox/gcc-head/lib,-rpath,/opt/wandbox/gcc-head/lib64,-rpath,/opt/wandbox/gcc-head/lib32
Thread model: posix
gcc version 9.0.1 20190419 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-o' 'prog.exe' '-I' '/opt/wandbox/boost-sml/include' '-I'
'/opt/wandbox/boost-di/include' '-I' '/opt/wandbox/range-v3/include' '-I'
'/opt/wandbox/nlohmann-json/src' '-I' '/opt/wandbox/cmcstl2/include' '-I'
'/opt/wandbox/te/include' '-Wpedantic' '-Wextra' '-v' '-std=gnu++2a' '-Wall'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /opt/wandbox/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/9.0.1/cc1plus -quiet -v
-I /opt/wandbox/boost-sml/include -I /opt/wandbox/boost-di/include -I
/opt/wandbox/range-v3/include -I /opt/wandbox/nlohmann-json/src -I
/opt/wandbox/cmcstl2/include -I /opt/wandbox/te/include -imultiarch
x86_64-linux-gnu -D_GNU_SOURCE prog.cc -quiet -dumpbase prog.cc -mtune=generic
-march=x86-64 -auxbase prog -Wpedantic -Wextra -Wall -std=gnu++2a -version -o
/tmp/ccMrqaZh.s
GNU C++17 (GCC) version 9.0.1 20190419 (experimental) (x86_64-pc-linux-gnu)
compiled by GNU C version 9.0.1 20190419 (experimental), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/9.0.1/../../../../x86_64-pc-linux-gnu/include"
ignoring nonexistent directory "/opt/wandbox/nlohmann-json/src"
#include "..." search starts here:
#include <...> search starts here:
 /opt/wandbox/boost-sml/include
 /opt/wandbox/boost-di/include
 /opt/wandbox/range-v3/include
 /opt/wandbox/cmcstl2/include
 /opt/wandbox/te/include

/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/9.0.1/../../../../include/c++/9.0.1

/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/9.0.1/../../../../include/c++/9.0.1/x86_64-pc-linux-gnu

/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/9.0.1/../../../../include/c++/9.0.1/backward
 /opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/9.0.1/include
 /opt/wandbox/gcc-head/include
 /opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/9.0.1/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C++17 (GCC) version 9.0.1 20190419 (experimental) (x86_64-pc-linux-gnu)
compiled by GNU C version 9.0.1 20190419 (experimental), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 5727b3035a99e91491262c43ff2f6952
prog.cc: In function 'int main()':
prog.cc:9:10: warning: unused variable 'unused_double' [-Wunused-variable]
9 |   double unused_double = 0;
  |  ^
prog.cc:10:7: warning: unused variable 'unused_int' [-Wunused-variable]
   10 |   int unused_int = 0;
  |   ^~
COLLECT_GCC_OPTIONS='-o' 'prog.exe' '-I' '/opt/wandbox/boost-sml/include' '-I'
'/opt/wandbox/boost-di/include' '-I' '/opt/wandbox/range-v3/include' '-I'
'/opt/wandbox/nlohmann-json/src' '-I' '/opt/wandbox/cmcstl2/include' '-I'
'/opt/wandbox/te/include' '-Wpedantic' '-Wextra' '-v' '-std=gnu++2a' '-Wall'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
 as -v -I /opt/wandbox/boost-sml/include -I /opt/wandbox/boost-di/include -I
/opt/wandbox/rang

[Bug c++/90196] std:: types unused without warnings but simple type not affected

2019-04-20 Thread maxim.prohorenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90196

--- Comment #1 from Максим Прохоренко  ---
Start
prog.cc:6:19: warning: unused variable 'std_unused_bitset' [-Wunused-variable]
  std::bitset<20> std_unused_bitset;
  ^
prog.cc:9:10: warning: unused variable 'unused_double' [-Wunused-variable]
  double unused_double = 0;
 ^
prog.cc:10:7: warning: unused variable 'unused_int' [-Wunused-variable]
  int unused_int = 0;
  ^
3 warnings generated.
0
Finish clang-8.0.0

But vector?

[Bug c++/90196] std:: types unused without warnings but simple type not affected

2019-04-21 Thread maxim.prohorenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90196

--- Comment #3 from Максим Прохоренко  ---
Allocate GiB of unused memory and don't warn about it? But 1 simple double - it
is a big problem.

For std:: objects with side effect - OK!
But for simple unused vector or set or map???

[Bug c++/90196] std:: types unused without warnings but simple type not affected

2019-04-21 Thread maxim.prohorenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90196

--- Comment #5 from Максим Прохоренко  ---

using namespace std;

class __attribute__((warn_unused)) kw
{
public:
  bitset<12> flags{"0010"};

};

int main() {
  printf("Hello World!\n");

  kw KW;
  puts(to_string(sizeof(kw)).c_str());
  return 0;
}

Mark all my class by __attribute__((warn_unused)) and all my colleagues was
hate me.

[Bug c++/55698] New: gcc does not report warning if operator not used : control reaches end of non-void function [-Wreturn-type]

2012-12-14 Thread maxim.prohorenko at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55698



 Bug #: 55698

   Summary: gcc does not report warning if operator not used :

control reaches end of non-void function

[-Wreturn-type]

Classification: Unclassified

   Product: gcc

   Version: unknown

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c++

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: maxim.prohore...@gmail.com





Two unused functions, but only 1 warning report. But if comment "return 0;" in

main - 2 warnings.



gcc  -Wall -Wno-long-long -pedantic ../gcc_operator/main.cpp -o main.o

../gcc_operator/main.cpp: In function 'int f(double)':  

../gcc_operator/main.cpp:5:1: warning: control reaches end of non-void function

[-Wreturn-type]  



-- main.cpp --

int f (double x)

{

  if (x > 0 || x < 0)

return 1;

}



struct value

{

  double x;



  int operator== (const value &a)

  {

if (a.x < x || a.x > x)

  return 0;

  }

};



int main (int argc, char **argv)

{

  value a, b;



  return 0;

  return a == b;

}

-- cut --

gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)



yum info gcc

Loaded plugins: langpacks, presto, refresh-packagekit

Installed Packages

Name: gcc

Arch: x86_64

Version : 4.7.2

Release : 8.fc18

Size: 32 M


[Bug c++/63585] no warning

2014-10-18 Thread maxim.prohorenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63585

--- Comment #1 from Максим Прохоренко  ---
int f (double x)
{
  if (x > 0 || x < 0)
return 1;
  // ok - warn
}

struct value
{
  double x;

  int operator== (const value &a)
  {
if (a.x < x || a.x > x)
  return 0;
// no warn ??
  }
};

int main (int argc, char **argv)
{
  value a, b;

  int bb = 1.;

  if (bb == f (1.) || bb == 2.5)
return 1;

  if (bb == 2.)
return 2;

  bb = bb;

  return 0;
  return a == b;
}

[Bug c++/63585] New: no warning

2014-10-18 Thread maxim.prohorenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63585

Bug ID: 63585
   Summary: no warning
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: maxim.prohorenko at gmail dot com


[Bug c++/63585] no warning

2014-10-18 Thread maxim.prohorenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63585

--- Comment #2 from Максим Прохоренко  ---
clang return all warnings

[Bug c++/55698] gcc does not report warning if operator not used : control reaches end of non-void function [-Wreturn-type]

2014-10-18 Thread maxim.prohorenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55698

--- Comment #3 from Максим Прохоренко  ---
Thanks guys.

[Bug other/81334] -Wmisleading-indentation prints notes about being disabled even when already intentionally ignored

2021-08-13 Thread maxim.prohorenko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81334

Максим Прохоренко  changed:

   What|Removed |Added

 CC||maxim.prohorenko at gmail dot 
com

--- Comment #5 from Максим Прохоренко  ---
Support disabling forwarding via #paragma please.
There is a lot of noise in the log if you include huge generated files.
An example can be taken in the github project F2I-Consulting / fesapi.

GCC_DIAG_IGNORED ("-Wmisleading-indentation")
CLANG_DIAG_IGNORED ("-Wmisleading-indentation")

#ifdef NEW_FESAPI
#include "fesapi/eml2/AbstractHdfProxy.h"
#else
#include "fesapi/common/AbstractHdfProxy.h"
#endif

#include "fesapi/nsDefinitions.h"

CLANG_DIAG_RESTORE
GCC_DIAG_RESTORE