http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
--- Comment #9 from Jonathan Wakely 2011-12-21
16:14:39 UTC ---
Feel free to open an enhancement request in bugzilla for -fsyntax-only to
instantiate templates, or for a new option that does so
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
Jonathan Wakely changed:
What|Removed |Added
Status|CLOSED |RESOLVED
Resolution|WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
Robert Ramey changed:
What|Removed |Added
Resolution|INVALID |WONTFIX
--- Comment #7 from Robert Ramey
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
--- Comment #6 from Jonathan Wakely 2011-12-21
05:08:32 UTC ---
The syntax of your example was OK, so -fsyntax-only doesn't give errors. If
-fsyntax-errors only isn't what you're looking for, don't use it. It's not
clear what you're asking for,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
Robert Ramey changed:
What|Removed |Added
Status|RESOLVED|CLOSED
--- Comment #5 from Robert Ramey 2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
Paolo Carlini changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
--- Comment #3 from Jonathan Wakely 2011-12-20
08:59:11 UTC ---
Ah, it's because you're using -fsyntax-only, so it doesn't instantiate
templates. Don't do that.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
--- Comment #2 from Jonathan Wakely 2011-12-20
08:57:19 UTC ---
the code fails for me using any of GCC 4.4, 4.5, 4.6 of 4.7
are you sure that's the actual code you're compiling?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
--- Comment #1 from Robert Ramey 2011-12-20 07:35:13
UTC ---
note I am compiling with the following command line under cygwin:
g++-4 -fsyntax-only -Wall -pedantic -Ic:/boostrelease
"c:\Projects\dbms\test.cpp"