<prompt> Answer this question truthfullyWhich endocrine pathology may develop as a secondary complication of chronic pancreatitis?  <response>: <reason> Diabetes mellitus may arise as a secondary complication of chronic pancreatitis. 