[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/42701] [4.5 Regression] ICE on error recovery

------- Comment #3 from rguenth at gcc dot gnu dot org  2010-01-12 13:43 -------
You can use -fpermissive in which case it's no longer error-recovery.

The emitted warning doesn't vanish with -w, the note stays:

> ./cc1plus -quiet greg_month.ii  -m32 -fpermissive -w
In file included from ./boost/date_time/gregorian/formatters.hpp:17:0,
                 from libs/date_time/src/gregorian/greg_month.cpp:21:
./boost/date_time/date_formatting.hpp: In static member function 'static
std::basic_string<charT> boost::date_time::ymd_formatter<ymd_type, format_type,
./boost/date_time/date_formatting.hpp:87:36: note: for a function-style cast,
remove the redundant '::locale'
In file included from libs/date_time/src/gregorian/greg_month.cpp:21:0:
./boost/date_time/gregorian/formatters.hpp: In function
'std::basic_string<_CharT> boost::gregorian::to_iso_string_type(const
boost::gregorian::date_period&) [with charT = char,
boost::gregorian::date_period =
./boost/date_time/gregorian/formatters.hpp:72:38:   instantiated from here
./boost/date_time/gregorian/formatters.hpp:65:125: internal compiler error: in
tsubst_copy, at cp/pt.c:10664
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.



rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
           Keywords|error-recovery              |diagnostic, ice-on-valid-
                   |                            |code
            Summary|ICE on error recovery       |[4.5 Regression] ICE on
                   |                            |error recovery
   Target Milestone|---                         |4.5.0


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply to: