[Bug c++/70846] New: GCC doesn't respond when compile my code

2016-04-28 Thread hvksmr1996 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70846

Bug ID: 70846
   Summary: GCC doesn't respond when compile my code
   Product: gcc
   Version: 5.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: hvksmr1996 at gmail dot com
  Target Milestone: ---

Created attachment 38360
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38360&action=edit
Source code

I tried to compile this particular code using MinGW 5.3.0 in Windows 10 64-bit,
when I hit enter to execute compile command, the compiler didn't respond.

Here's my command: g++ -Wall -Wextra -std=c++14 -o main.exe main.cpp

I opened taskmgr and saw a process named 'cc1plus.exe' with CPU usage 28 - 30 %
(my CPU is Intel Core i5 4210U) and RAM usage increase overtime until I see and
error message "cc1plus.exe: out of memory allocating 348411175 bytes
"

I also attached my code here

[Bug c++/66662] New: Request: Change #error directive displaying

2015-06-24 Thread hvksmr1996 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2

Bug ID: 2
   Summary: Request: Change #error directive displaying
   Product: gcc
   Version: 5.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: hvksmr1996 at gmail dot com
  Target Milestone: ---

For example:

My code:
  #error my error

My console display:
  main.cpp:2:2: error: #error my error
   #error my error
^

As you can see, "#error my error" is displayed two times, it looks bad (with me
at least).