Crash on compile with deprecated functions (18-rc1)

Loïc Hoguin <[email protected]> Sat, 02 May 2015 18:11:30 +0300
Newsgroups gmane.comp.lang.erlang.bugs
Organization Nine Nines
Message-ID <[email protected]>
Hello,

Some of my applications don't compile anymore because they have the 
ssl:negotiated_next_protocol instead of negotiated_protocol.

Problem is there is a crash instead of a nice error:

src/gun.erl: internal error in lint_module;
crash reason: {case_clause,{deprecated,{ssl,negotiated_protocol}}}

   in function  otp_internal:obsolete/3 (otp_internal.erl, line 33)
   in call from erl_lint:deprecated_function/5 (erl_lint.erl, line 3551)
   in call from erl_lint:check_remote_function/5 (erl_lint.erl, line 3527)
   in call from erl_lint:expr/3 (erl_lint.erl, line 2166)
   in call from erl_lint:expr/3 (erl_lint.erl, line 2111)
   in call from erl_lint:expr/3 (erl_lint.erl, line 2250)
   in call from erl_lint:exprs/3 (erl_lint.erl, line 2044)
   in call from erl_lint:icrt_clause/3 (erl_lint.erl, line 3029)

When I sent the PR I just copied the code around this clause so I'm 
pretty sure this crash will happen on many more functions. Not sure what 
action to take about it.

Cheers,

-- 
Loïc Hoguin
http://ninenines.eu
_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs