Segmentation Fault On New
<p>I'm not sure if this is a problem with g++ or somehow my compiler is messed up but I am getting an error on new at the very start of my program. I have tested everything and it any instance of new gives me a fault, even something as simple as this:</p>

<pre><code>int main(int argc, char *argv[]) {
    new char[12];
    return 0;
}
</code></pre>

<p>Stack Trace:</p>

<pre><code>#0  0x7703636d in ntdll!RtlAllocateHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x77035125 in ntdll!RtlAllocateHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x77034fc2 in ntdll!RtlAllocateHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll
#3  0x770cece6 in ntdll!RtlpNtSetValueKey () from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x77037656 in ntdll!RtlAllocateHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll
#5  0x77035125 in ntdll!RtlAllocateHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll
#6  0x77034fc2 in ntdll!RtlAllocateHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll
#7  0x765e79b0 in msvcrt!malloc () from C:\WINDOWS\System32\msvcrt.dll
#8  0x6fef4a79 in ?? () from C:\MinGW\bin\libstdc++-6.dll
#9  0x6fef4a1f in ?? () from C:\MinGW\bin\libstdc++-6.dll
#10 0x00401a5c in main (argc=2, argv=0x7679b0) at C:\Users\Mackenzie\Desktop\School\ECE150\Project\Parser\parser.cpp:2
</code></pre>